/* SOCE Phase 2 time tools – scoped to each new widget. */
.soce-tool .soce-analog,
.soce-tool .soce-chess,
.soce-tool .soce-meditation,
.soce-tool .soce-presentation,
.soce-tool .soce-meeting { display:grid; gap:18px; }
.soce-tool .soce-analog { justify-items:center; padding:8px 0 2px; }
.soce-tool .soce-analog__face { width:min( min(72vw, 350px), 100%); aspect-ratio:1; position:relative; border-radius:50%; border:12px solid #d9e8e1; background: radial-gradient(circle at center, #fff 0 55%, #f2f8f4 56% 100%); box-shadow: inset 0 0 0 2px #fff, inset 0 0 28px rgba(18,85,61,.10), 0 14px 36px rgba(22,107,80,.12); background-image: radial-gradient(circle at center, #fff 0 55%, #f2f8f4 56% 100%), repeating-conic-gradient(from 0deg, #426f5d 0deg 1deg, transparent 1deg 6deg); background-blend-mode:normal; }
.soce-tool .soce-analog__face:before { content:""; position:absolute; inset:7%; border-radius:50%; border:1px solid rgba(31,99,72,.15); }
.soce-tool .soce-analog__number { position:absolute; z-index:2; font-size:clamp(17px,3vw,25px); font-weight:800; color:#244d3c; transform:translate(-50%,-50%); }
.soce-tool .soce-analog__number--12 { left:50%; top:12%; }
.soce-tool .soce-analog__number--3 { left:88%; top:50%; }
.soce-tool .soce-analog__number--6 { left:50%; top:88%; }
.soce-tool .soce-analog__number--9 { left:12%; top:50%; }
.soce-tool .soce-analog__hand { position:absolute; z-index:3; bottom:50%; left:50%; border-radius:99px; transform-origin:50% 100%; transform:translateX(-50%) rotate(0deg); }
.soce-tool .soce-analog__hand--hour { height:25%; width:7px; background:#1f5940; }
.soce-tool .soce-analog__hand--minute { height:35%; width:5px; background:#278b67; }
.soce-tool .soce-analog__hand--second { height:39%; width:2px; background:#e05d5d; }
.soce-tool .soce-analog__pin { position:absolute; z-index:4; width:15px; height:15px; border-radius:50%; background:#e05d5d; border:3px solid #fff; top:50%; left:50%; transform:translate(-50%,-50%); box-shadow:0 1px 5px rgba(0,0,0,.18); }
.soce-tool .soce-analog__digital { color:#174a35; font-size:clamp(28px,5vw,42px); font-weight:800; letter-spacing:1px; font-variant-numeric:tabular-nums; }
.soce-tool .soce-analog__format { width:min(260px,100%); }
.soce-tool .soce-chess__boards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.soce-tool .soce-chess__player { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border-radius:16px; border:3px solid transparent; padding:20px 12px; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.soce-tool .soce-chess__player:disabled { cursor:default; opacity:.78; }
.soce-tool .soce-chess__player--white { background:linear-gradient(145deg,#fff,#edf3f0); color:#1d4534; border-color:#d7e4dd; }
.soce-tool .soce-chess__player--black { background:linear-gradient(145deg,#243047,#101827); color:#fff; border-color:#34435d; }
.soce-tool .soce-chess__player.is-active { border-color:#20a878; box-shadow:0 0 0 4px rgba(32,168,120,.14),0 12px 28px rgba(0,0,0,.12); transform:translateY(-2px); opacity:1; }
.soce-tool .soce-chess__player.is-expired { border-color:#dc5757; background:#fff0f0; color:#9e2929; }
.soce-tool .soce-chess__player span { font-size:12px; font-weight:800; letter-spacing:2px; }
.soce-tool .soce-chess__player strong { font-size:clamp(32px,5vw,48px); line-height:1.05; font-variant-numeric:tabular-nums; }
.soce-tool .soce-chess__player small { font-size:13px; opacity:.75; }
.soce-tool .soce-meditation { background:linear-gradient(145deg,#f1f9f6,#f5f3ff); border:1px solid #dcebe4; border-radius:18px; padding:clamp(15px,3vw,25px); }
.soce-tool .soce-meditation__presets { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.soce-tool .soce-meditation__presets button { border-radius:999px; padding:8px 15px; }
.soce-tool .soce-meditation__orb { width:min(250px,70vw); aspect-ratio:1; margin:4px auto; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff 0,#d9f4e8 35%,#b8d7e8 75%,#b9b1ed 100%); box-shadow:0 0 0 12px rgba(255,255,255,.6),0 12px 36px rgba(63,116,105,.15); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#234d43; text-align:center; }
.soce-tool .soce-meditation__orb span { font-size:clamp(34px,6vw,50px); font-weight:800; font-variant-numeric:tabular-nums; }
.soce-tool .soce-meditation__orb small { margin-top:5px; font-size:13px; }
.soce-tool .soce-meditation .soce-status { text-align:center; }
.soce-tool .soce-presentation__panel,
.soce-tool .soce-meeting__panel { border-radius:17px; padding:clamp(18px,4vw,30px); background:linear-gradient(135deg,#163e35,#176f58 60%,#239a72); color:#fff; text-align:center; box-shadow:0 12px 30px rgba(20,92,69,.18); }
.soce-tool .soce-presentation__panel > span:first-child { display:block; font-size:14px; font-weight:700; opacity:.9; margin-bottom:8px; }
.soce-tool .soce-presentation__panel > span:nth-child(2) { display:block; font-size:12px; letter-spacing:2px; font-weight:800; opacity:.8; }
.soce-tool .soce-presentation__panel > strong,
.soce-tool .soce-meeting__panel > strong { display:block; font-size:clamp(46px,9vw,82px); line-height:1.15; font-weight:800; letter-spacing:-2px; font-variant-numeric:tabular-nums; padding:10px 0 16px; }
.soce-tool .soce-presentation__panel .soce-interval__progress,
.soce-tool .soce-meeting__panel .soce-interval__progress { height:9px; border-radius:99px; background:rgba(255,255,255,.23); overflow:hidden; }
.soce-tool .soce-presentation__panel .soce-interval__progress span,
.soce-tool .soce-meeting__panel .soce-interval__progress span { display:block; height:100%; width:0; background:#f5d36c; border-radius:inherit; transition:width .12s linear; }
.soce-tool .soce-presentation__meta { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:14px; font-size:13px; color:rgba(255,255,255,.9); }
.soce-tool .soce-presentation__meta b { color:#fff; font-variant-numeric:tabular-nums; }
.soce-tool .soce-meeting__agenda { padding:16px; border:1px solid #dce7e1; border-radius:13px; background:#fbfdfc; }
.soce-tool .soce-meeting__agenda-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.soce-tool .soce-meeting__agenda-head p { margin:4px 0 0; color:#69766f; font-size:13px; }
.soce-tool .soce-meeting__item { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; align-items:end; gap:10px; padding:12px 0; border-top:1px solid #e8efeb; }
.soce-tool .soce-meeting__item .soce-field { margin-bottom:0; }
.soce-tool .soce-meeting__item > button { min-height:42px; }
.soce-tool .soce-meeting__panel > span { display:block; font-size:13px; letter-spacing:1px; font-weight:800; opacity:.88; }
.soce-tool .soce-meeting__panel > strong { padding:8px 0 15px; }
.soce-tool .soce-meeting__panel .soce-presentation__meta { text-align:left; }
.soce-tool .soce-overtime__result { white-space:pre-line; line-height:1.8; }
.soce-tool [data-soce-chess-clock] .soce-field input:disabled,
.soce-tool [data-soce-meditation] .soce-field input:disabled,
.soce-tool [data-soce-presentation] .soce-field input:disabled,
.soce-tool [data-soce-meeting] .soce-field input:disabled { opacity:.65; background:#edf1ee; }
.soce-tool[data-theme="dark"] .soce-analog__face { background-color:#182b25; border-color:#355747; background-image:radial-gradient(circle at center,#203a30 0 55%,#172c24 56% 100%),repeating-conic-gradient(from 0deg,#a8c4b6 0deg 1deg,transparent 1deg 6deg); }
.soce-tool[data-theme="dark"] .soce-analog__number { color:#e0eee6; }
.soce-tool[data-theme="dark"] .soce-analog__hand--hour { background:#e3f2e9; }
.soce-tool[data-theme="dark"] .soce-analog__hand--minute { background:#70d8ad; }
.soce-tool[data-theme="dark"] .soce-analog__digital { color:#e2f5eb; }
.soce-tool[data-theme="dark"] .soce-meditation { background:linear-gradient(145deg,#1d322d,#29263e); border-color:#3d5a51; }
.soce-tool[data-theme="dark"] .soce-meditation__orb { color:#1b4438; }
.soce-tool[data-theme="dark"] .soce-meeting__agenda { background:#1c2a25; border-color:#40594e; }
.soce-tool[data-theme="dark"] .soce-meeting__agenda-head p { color:#b3c4ba; }
.soce-tool[data-theme="dark"] .soce-meeting__item { border-color:#3b5147; }
.soce-tool[data-theme="dark"] .soce-overtime__result { background:#20382d; color:#e1f3e8; border-left-color:#5bc99a; }
@media(max-width:640px) {
  .soce-tool .soce-chess__boards { gap:8px; }
  .soce-tool .soce-chess__player { min-height:130px; padding:14px 6px; }
  .soce-tool .soce-meeting__agenda-head { flex-direction:column; }
  .soce-tool .soce-meeting__agenda-head button { width:100%; }
  .soce-tool .soce-meeting__item { grid-template-columns:minmax(0,1fr) 94px; }
  .soce-tool .soce-meeting__item > button { grid-column:1/-1; width:100%; }
  .soce-tool .soce-presentation__meta { justify-content:center; }
}
