/* ── HOMEPAGE / WIDGETS ─────────────────────── */
.home-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.widgets-grid{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:14px;align-items:start;
}
.widget{grid-column:span 4;min-width:0;display:flex;flex-direction:column;gap:0}
.widget-weather{grid-column:span 7;width:100%;max-width:none;justify-self:stretch}
.widget-time{grid-column:span 5;width:100%;min-width:0}
.widget-card{
  background:var(--card);border:1px solid var(--sep);border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.widget-card.pad{padding:18px}
.widget-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.widget-stat{
  padding:14px 14px 12px;border-radius:12px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
}
.widget-stat-label{
  font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--t3);
}
.widget-stat-value{
  margin-top:8px;font-size:28px;font-weight:700;letter-spacing:-.05em;color:var(--t1);line-height:1;
}
.widget-stat-sub{margin-top:7px;font-size:12px;color:var(--t2);line-height:1.35}
.widget-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;
}
.widget-action{
  min-height:44px;padding:11px 12px;border-radius:11px;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);
  color:var(--t2);font-family:var(--font);font-size:12px;font-weight:600;
  display:flex;align-items:center;gap:8px;cursor:pointer;transition:background .12s,border-color .12s,color .12s;
}
.widget-action svg{width:15px;height:15px;flex-shrink:0;color:rgba(255,255,255,.45);transition:color .12s}
.widget-mini-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.widget-mini-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--t2);
}
.widget-mini-row strong{font-size:16px;color:var(--t1);font-weight:700;letter-spacing:-.03em}
.widget-bars{display:flex;align-items:flex-end;gap:8px;height:82px;margin-top:14px}
.widget-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}
.widget-bar{
  width:100%;max-width:26px;border-radius:999px 999px 6px 6px;
  background:linear-gradient(180deg,rgba(111,151,246,.85),rgba(111,151,246,.18));
  min-height:8px;
}
.widget-bar-col span{font-size:10px;color:var(--t3);letter-spacing:.02em}

/* weather */
.weather-wrap{margin-bottom:0;flex:1}
.weather-wrap,.weather-card{height:auto}
.weather-card{background:var(--card);border:1px solid var(--sep);border-radius:14px;overflow:visible;box-shadow:0 4px 20px rgba(0,0,0,.4)}
.weather-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:60px;padding:11px 22px;border-bottom:1px solid rgba(255,255,255,.06);
}
.weather-head-copy{min-width:0;flex:1;display:flex;align-items:center;min-height:auto}
.weather-place-name{
  font-size:19px;font-weight:650;letter-spacing:-.03em;line-height:1.15;color:var(--t1);
  padding-top:0;
}
.weather-place-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.weather-action-btn{
  min-height:32px;padding:7px 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);
  color:var(--t2);font-family:var(--font);font-size:11px;font-weight:650;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s;
  display:inline-flex;align-items:center;justify-content:center;
}
.weather-action-btn:hover{background:rgba(255,255,255,.08);color:var(--t1);border-color:rgba(255,255,255,.14)}
.weather-action-btn-quiet{background:transparent}
.weather-location-picker{
  padding:14px 22px 16px;border-bottom:1px solid rgba(255,255,255,.06);
}
.weather-search-top{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.weather-search-title{font-size:14px;font-weight:650;color:var(--t1)}
.weather-search-sub{font-size:12px;line-height:1.45;color:var(--t2)}
.weather-location-field-wrap{position:relative;max-width:560px;z-index:3}
.weather-location-bar{
  display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);
  transition:border-color .12s,box-shadow .12s,background .12s;
}
.weather-location-field-wrap.is-open .weather-location-bar{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  border-bottom-color:transparent;
}
.weather-location-bar:focus-within{
  border-color:rgba(111,151,246,.35);
  box-shadow:0 0 0 3px rgba(111,151,246,.12);
  background:rgba(0,0,0,.22);
}
.weather-location-field-wrap.is-open .weather-location-bar:focus-within{
  box-shadow:0 0 0 3px rgba(111,151,246,.12);
}
.weather-location-icon{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:rgba(255,255,255,.34);
}
.weather-location-icon svg{width:15px;height:15px;display:block}
.weather-location-input{
  flex:1;min-width:0;height:100%;border:none;background:transparent;
  color:var(--t1);font-family:var(--font);font-size:14px;outline:none;
}
.weather-location-input::placeholder{color:var(--t3)}
.weather-search-status{margin-top:10px;font-size:12px;line-height:1.45;color:var(--t3)}
.weather-location-dropdown{
  position:absolute;left:0;right:0;top:calc(100% - 1px);z-index:4;
  padding:8px;border-radius:0 0 14px 14px;background:var(--panel-bg);border:1px solid var(--panel-border);
  border-top:none;box-shadow:0 18px 34px rgba(0,0,0,.42);
  display:flex;flex-direction:column;gap:6px;
}
.weather-location-result{
  width:100%;padding:11px 12px;border-radius:10px;text-align:left;
  border:1px solid transparent;background:rgba(255,255,255,.03);
  color:var(--t2);font-family:var(--font);font-size:12px;font-weight:500;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s;
}
.weather-location-result:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:var(--t1)}
.weather-empty{
  display:flex;align-items:flex-start;gap:14px;
  padding:22px;border-top:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.01),rgba(0,0,0,.04));
}
.weather-empty-icon{
  width:42px;height:42px;border-radius:14px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(111,151,246,.12);border:1px solid rgba(111,151,246,.16);color:#87a6ee;
}
.weather-empty-icon svg{width:20px;height:20px;display:block}
.weather-empty-copy-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.weather-empty-title{font-size:15px;font-weight:650;color:var(--t1);letter-spacing:-.02em}
.weather-empty-copy{font-size:13px;line-height:1.55;color:var(--t2);max-width:44ch}
.weather-empty-btn{
  min-height:36px;padding:9px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.1);
  background:rgba(111,151,246,.16);color:#eef3ff;font-family:var(--font);font-size:12px;font-weight:700;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s;
}
.weather-empty-btn:hover{background:rgba(111,151,246,.2);border-color:rgba(111,151,246,.35)}
.weather-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;transition:opacity .4s}
.weather-main.has-photo{position:relative;overflow:hidden}
.weather-main.has-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,rgba(0,0,0,.62) 0%,rgba(0,0,0,.32) 100%);z-index:1;pointer-events:none}
.weather-main.has-photo .weather-icon,.weather-main.has-photo .weather-info{position:relative;z-index:2}
.weather-main{display:flex;align-items:center;gap:18px;padding:16px 22px 18px}
.weather-icon{font-size:52px;line-height:1;flex-shrink:0}
.weather-info{flex:1;min-width:0}
.weather-temp{font-size:40px;font-weight:300;letter-spacing:-1px;line-height:1;font-family:var(--font);color:var(--t1)}
.weather-desc{font-size:13px;color:var(--t2);margin-top:4px;font-weight:500}
.weather-meta{font-size:12px;color:var(--t3);margin-top:6px;font-weight:400}
.weather-forecast-switch{
  display:flex;align-items:center;gap:8px;padding:0 22px 14px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;cursor:grab;
}
.weather-forecast-switch::-webkit-scrollbar{display:none}
.weather-forecast-chip{
  min-height:31px;padding:0 11px;border-radius:999px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);color:var(--t2);font-family:var(--font);font-size:11px;font-weight:700;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s;
}
.weather-forecast-chip:hover,
.weather-forecast-chip:focus-visible{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
  color:var(--t1);
}
.weather-forecast-chip.active{
  background:rgba(111,151,246,.14);
  border-color:rgba(111,151,246,.22);
  color:#dce6ff;
}
.weather-aqi{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.15);gap:12px}
.aqi-left{display:flex;align-items:baseline;gap:8px}
.aqi-pre{font-size:26px;font-weight:300;color:#fff;font-family:var(--font);line-height:1}
.aqi-num{font-size:26px;font-weight:600;line-height:1;font-family:var(--font)}
.aqi-lbl{font-size:12px;color:#777;font-weight:500}
.aqi-right{display:flex;gap:16px;align-items:baseline}
.aqi-stat{font-size:13px;color:#666}
.aqi-stat b{color:#aaa;font-weight:600}
.weather-scroll-frame{background:rgba(0,0,0,.1)}
.hourly-row{display:flex;padding:4px 0;background:rgba(0,0,0,.1);cursor:grab}
.hourly-row-extended{overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:none;padding-bottom:0;scrollbar-width:none}
.hourly-row-extended::-webkit-scrollbar{display:none}
.hourly-row-extended::-webkit-scrollbar-button{display:none;width:0;height:0}
.hourly-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 6px;border-right:1px solid rgba(255,255,255,.05)}
.hourly-row-extended .hourly-item{min-width:58px;flex:0 0 58px;scroll-snap-align:none}
.hourly-item:last-child{border-right:none}
.h-time{font-size:12px;color:#666;font-weight:500;letter-spacing:.01em}
.h-icon{font-size:20px;line-height:1}
.h-temp{font-size:13px;font-weight:500;color:#ccc;font-family:var(--font)}
.weather-scrollbar{
  height:12px;margin:0 18px 7px;position:relative;border-radius:999px;
  cursor:pointer;touch-action:none;
}
.weather-scrollbar-thumb{
  position:absolute;left:0;top:3px;height:6px;min-width:44px;border-radius:999px;
  background:rgba(255,255,255,.24);transform:translateX(0);
}
.weather-scrollbar:hover .weather-scrollbar-thumb,
.weather-scrollbar.is-dragging .weather-scrollbar-thumb{background:rgba(255,255,255,.34)}
.weather-scroll-frame.no-scroll .weather-scrollbar{display:none}
.weather-days-row{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px 16px 16px;background:rgba(0,0,0,.06);
  overflow:visible;
}
.weather-forecast-switch.is-drag-scrolling,
.hourly-row.is-drag-scrolling,
.weather-days-row.is-drag-scrolling{cursor:grabbing;scroll-snap-type:none}
.weather-drag-scroll,
.weather-drag-scroll *{user-select:none;-webkit-user-select:none}
.weather-day-item{
  min-width:0;padding:12px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;
}
.weather-day-name{font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--t2);text-transform:uppercase}
.weather-day-icon{font-size:22px;line-height:1}
.weather-day-temps{display:flex;align-items:baseline;gap:6px;font-size:12px;color:var(--t2)}
.weather-day-temps span:first-child{font-size:15px;font-weight:700;color:var(--t1)}
.weather-loading{padding:28px;text-align:center;color:var(--t3);font-size:13px}

/* ── TIME WIDGET ─────────────────────────────── */
.time-widget-card{
  --time-ring-color:#6f97f6;
  flex:1;height:100%;min-height:100%;
  background:var(--card);border:1px solid var(--sep);border-radius:14px;
  box-shadow:0 4px 20px rgba(0,0,0,.4);
  overflow:visible;padding:14px;
  position:relative;
  display:flex;flex-direction:column;gap:12px;
  transition:border-color .18s,box-shadow .18s;
}
.time-widget-card.is-running{
  border-color:color-mix(in srgb,var(--time-ring-color) 24%, transparent);
  box-shadow:0 4px 20px rgba(0,0,0,.4),0 0 28px color-mix(in srgb,var(--time-ring-color) 13%, transparent);
}
.time-head{position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;padding:0 40px}
.time-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:3px;padding:3px;border-radius:999px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);
  width:min(100%,318px);max-width:318px;
}
.time-tab{
  min-height:28px;padding:0 10px;border:0;border-radius:999px;background:transparent;
  color:var(--t3);font-family:var(--font);font-size:11px;font-weight:750;cursor:pointer;
}
.time-tab.active{background:rgba(111,151,246,.15);color:#dce6ff}
.time-settings-toggle{
  position:absolute;right:0;top:0;
  width:32px;height:32px;border-radius:10px;border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.035);color:var(--t3);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.time-settings-toggle svg{width:15px;height:15px}
.time-settings-toggle:hover,
.time-settings-toggle.active{
  color:var(--t1);border-color:color-mix(in srgb,var(--time-ring-color) 24%, rgba(255,255,255,.08));
  background:color-mix(in srgb,var(--time-ring-color) 10%, rgba(255,255,255,.04));
}
.time-settings-panel{
  position:absolute;z-index:5;top:54px;right:14px;width:min(326px,calc(100% - 28px));
  padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.085);
  background:color-mix(in srgb,var(--card) 90%, rgba(20,20,20,.96));
  box-shadow:0 18px 44px rgba(0,0,0,.44),0 0 0 1px rgba(0,0,0,.16);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  max-height:min(560px,calc(100vh - 150px));overflow:auto;scrollbar-width:thin;
}
.time-settings-block+.time-settings-block{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.055)}
.time-settings-title{
  margin-bottom:8px;color:var(--t2);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.time-sound-list{display:flex;flex-direction:column;gap:6px}
.time-sound-row{
  display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:7px;
}
.time-sound-choice{
  min-width:0;min-height:36px;border:1px solid rgba(255,255,255,.065);border-radius:11px;
  background:rgba(255,255,255,.032);color:var(--t2);font-family:var(--font);
  display:flex;align-items:center;gap:9px;padding:0 10px;cursor:pointer;text-align:left;
}
.time-sound-row.active .time-sound-choice{
  color:var(--t1);border-color:color-mix(in srgb,var(--time-ring-color) 28%, rgba(255,255,255,.08));
  background:color-mix(in srgb,var(--time-ring-color) 12%, rgba(255,255,255,.035));
}
.time-sound-choice:hover{border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.052)}
.time-sound-mark{
  width:17px;height:17px;border-radius:999px;display:flex;align-items:center;justify-content:center;flex:0 0 17px;
  border:1px solid rgba(255,255,255,.1);color:var(--time-ring-color);
}
.time-sound-row.active .time-sound-mark{
  background:var(--time-ring-color);
  border-color:color-mix(in srgb,var(--time-ring-color) 62%, rgba(255,255,255,.12));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--time-ring-color) 16%, transparent);
}
.time-sound-mark svg{width:11px;height:11px}
.time-sound-name{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.time-preview-btn{
  width:34px;height:34px;border-radius:11px;border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.04);color:var(--t2);display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.time-preview-btn svg{width:14px;height:14px}
.time-preview-btn:hover,
.time-preview-btn.is-previewing{
  color:var(--t1);background:color-mix(in srgb,var(--time-ring-color) 14%, rgba(255,255,255,.05));
  border-color:color-mix(in srgb,var(--time-ring-color) 28%, rgba(255,255,255,.08));
}
.time-volume-row{
  min-height:36px;border:1px solid rgba(255,255,255,.06);border-radius:12px;
  display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;padding:0 10px;
  background:rgba(255,255,255,.028);
}
.time-volume-icon{display:flex;align-items:center;justify-content:center;color:var(--t3)}
.time-volume-icon svg{width:18px;height:18px}
.time-volume-range{
  width:100%;accent-color:var(--time-ring-color);cursor:pointer;
}
.time-adjust-settings,
.time-stopwatch-settings{display:flex;flex-direction:column;gap:7px}
.time-adjust-setting-row,
.time-stopwatch-setting-row{
  min-height:36px;border:1px solid rgba(255,255,255,.06);border-radius:12px;
  background:rgba(255,255,255,.028);display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 9px 0 11px;
}
.time-adjust-setting-label,
.time-stopwatch-setting-label{font-size:12px;font-weight:650;color:var(--t2)}
.time-adjust-setting-input{
  width:76px;height:26px;border:1px solid rgba(255,255,255,.08);border-radius:9px;
  background:rgba(0,0,0,.18);color:var(--t1);font-family:var(--font);font-size:12px;font-weight:700;
  text-align:center;outline:none;font-variant-numeric:tabular-nums;
}
.time-adjust-setting-input:focus{
  border-color:color-mix(in srgb,var(--time-ring-color) 46%, rgba(255,255,255,.12));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--time-ring-color) 14%, transparent);
}
.time-settings-switch{
  width:42px;height:24px;border:1px solid rgba(255,255,255,.08);border-radius:999px;
  background:rgba(255,255,255,.05);padding:2px;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;
}
.time-settings-switch-thumb{
  width:18px;height:18px;border-radius:999px;background:rgba(255,255,255,.48);
  transition:transform .14s ease,background .14s ease;
}
.time-settings-switch.active{
  justify-content:flex-start;background:color-mix(in srgb,var(--time-ring-color) 22%, rgba(255,255,255,.04));
  border-color:color-mix(in srgb,var(--time-ring-color) 34%, rgba(255,255,255,.08));
}
.time-settings-switch.active .time-settings-switch-thumb{
  transform:translateX(18px);background:var(--time-ring-color);
}
.time-color-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.time-color-btn,
.time-custom-color{
  width:100%;
  height:32px;border-radius:11px;border:1px solid rgba(255,255,255,.075);background:rgba(255,255,255,.035);
  display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;
}
.time-color-btn::before,
.time-custom-swatch{
  content:'';width:16px;height:16px;border-radius:999px;background:var(--swatch-color);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch-color) 15%, transparent);
}
.time-color-btn.active,
.time-custom-color.active{
  border-color:color-mix(in srgb,var(--swatch-color) 54%, rgba(255,255,255,.1));
  background:color-mix(in srgb,var(--swatch-color) 11%, rgba(255,255,255,.04));
}
.time-custom-color-wrap{position:relative;min-width:0}
.time-custom-color{overflow:hidden}
.time-custom-color::after{
  content:'';position:absolute;inset:7px;border-radius:999px;border:1px dashed rgba(255,255,255,.22);pointer-events:none;
}
.time-custom-picker-icon{
  position:absolute;right:5px;bottom:4px;width:13px;height:13px;border-radius:999px;
  background:rgba(0,0,0,.42);color:var(--t1);display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}
.time-custom-picker-icon svg{width:9px;height:9px}
.time-color-picker{
  position:absolute;left:50%;top:50%;width:1px;height:1px;opacity:0;pointer-events:none;
}
.time-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;flex:1;min-height:314px}
.time-panel-timer{position:relative;padding-bottom:56px}
.time-face{
  width:min(100%,258px);aspect-ratio:1;position:relative;display:grid;place-items:center;
  margin:0 auto;
}
.time-ring-svg{
  position:absolute;inset:0;width:100%;height:100%;overflow:visible;
  pointer-events:none;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.22));
}
.time-ring-track,
.time-ring-progress{
  fill:none;stroke-width:8;transform:rotate(-90deg);transform-origin:110px 110px;
}
.time-ring-track{stroke:rgba(255,255,255,.065)}
.time-ring-progress{
  stroke:var(--time-ring-color);stroke-linecap:round;
  transition:stroke-dashoffset .22s linear,stroke .18s;
}
.time-widget-card.is-running .time-ring-progress{stroke:var(--time-ring-color)}
.time-face-content{
  position:relative;z-index:1;width:82%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:15px;padding-top:5px;
}
.time-display{
  color:var(--t1);font-family:var(--font);font-size:clamp(31px,3.4vw,42px);font-weight:300;letter-spacing:0;line-height:1;
  font-variant-numeric:tabular-nums;
}
.time-display-button{
  border:0;background:transparent;padding:4px 2px 8px;border-radius:0;cursor:pointer;
  max-width:100%;text-align:center;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.18);
}
.time-display-button:hover,
.time-display-button:focus-visible{border-bottom-color:color-mix(in srgb,var(--time-ring-color) 76%, transparent);outline:none}
.time-display-input{
  width:100%;border:0;border-bottom:1px solid color-mix(in srgb,var(--time-ring-color) 76%, transparent);background:transparent;
  padding:4px 2px 8px;text-align:center;outline:none;color:var(--t1);caret-color:var(--time-ring-color);
  box-sizing:border-box;cursor:text;
}
.time-display-flat{font-size:clamp(36px,4.3vw,50px);margin-top:0}
.time-stopwatch-display{font-size:clamp(31px,3.8vw,46px)}
.time-face-actions{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0}
.time-adjust-btn{
  min-height:34px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.075);background:rgba(255,255,255,.07);
  color:var(--t1);font-family:var(--font);font-size:12px;font-weight:650;cursor:pointer;
}
.time-adjust-btn:disabled{opacity:.35;cursor:default}
.time-card-actions{
  position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
.time-controls,.time-counter-controls{display:flex;align-items:center;justify-content:center;gap:9px}
.time-btn{
  width:42px;height:42px;border-radius:13px;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);color:var(--t2);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s,transform .12s;
}
.time-btn svg{width:17px;height:17px}
.time-btn.primary{background:rgba(111,151,246,.17);border-color:rgba(111,151,246,.24);color:#eef3ff}
.time-btn:hover:not(:disabled){background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.14);color:var(--t1)}
.time-btn.primary:hover:not(:disabled){background:rgba(111,151,246,.22);border-color:rgba(111,151,246,.34)}
.time-btn:active:not(:disabled){transform:translateY(1px)}
.time-card-actions .time-btn{width:100%;height:44px;border-radius:12px}
.time-card-actions .time-btn svg{width:15px;height:15px}
.time-card-actions .time-btn.primary{
  background:color-mix(in srgb,var(--time-ring-color) 17%, rgba(255,255,255,.04));
  border-color:color-mix(in srgb,var(--time-ring-color) 26%, rgba(255,255,255,.08));
}
.time-card-actions .time-btn.primary:hover:not(:disabled){
  background:color-mix(in srgb,var(--time-ring-color) 23%, rgba(255,255,255,.05));
  border-color:color-mix(in srgb,var(--time-ring-color) 36%, rgba(255,255,255,.1));
}
.time-counter-value{
  min-width:174px;text-align:center;color:var(--t1);font-size:clamp(58px,6vw,76px);font-weight:260;line-height:1;
  letter-spacing:0;font-variant-numeric:tabular-nums;font-family:var(--font);
}
.time-counter-button{
  border:0;border-bottom:1px solid transparent;background:transparent;padding:0 2px 7px;border-radius:0;cursor:pointer;
}
.time-counter-button:hover,
.time-counter-button:focus-visible{
  outline:none;border-bottom-color:color-mix(in srgb,var(--time-ring-color) 66%, transparent);
}
.time-counter-input{
  width:min(220px,100%);border:0;border-bottom:1px solid color-mix(in srgb,var(--time-ring-color) 72%, transparent);
  background:transparent;outline:none;padding:0 2px 7px;
}
.time-counter-controls .time-btn{width:46px;height:46px;border-radius:14px}

/* ── MINI PLAYER ──────────────────────────────── */
.mini-player{
  position:fixed;right:22px;bottom:22px;z-index:748;
  display:flex;align-items:center;gap:10px;
  width:320px;max-width:calc(100vw - 24px);min-height:58px;
  padding:11px 13px;border-radius:18px;
  background:var(--panel-bg);border:1px solid var(--panel-border);
  box-shadow:0 14px 38px rgba(0,0,0,.48);
  overflow:visible;cursor:pointer;
  opacity:0;pointer-events:none;transform:translateY(8px);
  transition:opacity .18s,transform .2s cubic-bezier(.25,0,.18,1),background .15s,border-color .15s,box-shadow .15s;
  user-select:none;-webkit-user-select:none;
}
.mini-player *{user-select:none;-webkit-user-select:none}
.mini-player.visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.mini-player.visible.is-playing{border-color:rgba(102,144,242,.22);box-shadow:0 14px 38px rgba(0,0,0,.48),0 0 28px rgba(102,144,242,.13)}
.mini-player.is-minimized{
  width:58px;max-width:58px;min-width:58px;height:58px;padding:13px;
  justify-content:center;
}
.mini-player-body{
  display:flex;align-items:center;gap:12px;
  color:inherit;padding:2px 4px 2px 0;font-family:var(--font);min-width:0;text-align:left;flex:1 1 auto;
}
.mini-player-ico{
  width:30px;height:30px;min-width:30px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--t1) 6%, transparent);
  color:var(--t2);
  flex-shrink:0;cursor:pointer;outline:none;
  transition:opacity .18s,color .18s,filter .18s,background .18s;
}
.mini-player-ico svg{width:18px;height:18px;transform:translateY(-.5px)}
.mini-player-ico:focus-visible{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 22%, transparent);
}
.mini-player-info{
  min-width:0;text-align:left;
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;
}
.mini-player-title{font-size:13px;font-weight:650;color:var(--t1);line-height:1.05}
.mini-player-sub{font-size:11px;color:var(--t3);line-height:1.05;min-width:72px}
.mini-player.is-playing .mini-player-ico{background:color-mix(in srgb,var(--acc) 14%, transparent);color:color-mix(in srgb,var(--acc) 68%, var(--t1))}
.mini-player.is-playing .mini-player-title{color:var(--t1)}
.mini-player.is-playing .mini-player-sub{color:color-mix(in srgb,var(--acc) 64%, var(--t2))}
.mini-player.is-paused .mini-player-ico{
  opacity:1;filter:none;
  background:color-mix(in srgb,var(--t1) 6%, transparent);
  color:var(--t2);
}
.mini-player.is-paused .mini-player-title{color:var(--t1)}
.mini-player.is-paused .mini-player-sub{color:var(--t3)}
.mini-player-vol{display:flex;align-items:center;gap:7px;padding-left:2px;flex-shrink:0}
.mini-player-vol-ico{color:var(--t3);display:flex;align-items:center}
.mini-player-vol-ico svg{width:20px;height:20px}
.mini-player-vol-range{
  -webkit-appearance:none;appearance:none;width:74px;height:3px;border-radius:999px;
  background:color-mix(in srgb,var(--t1) 14%, transparent);outline:none;cursor:pointer;
}
.mini-player-vol-range{-webkit-user-select:auto;user-select:auto}
.mini-player-vol-range::-webkit-slider-thumb{
  -webkit-appearance:none;width:12px;height:12px;border-radius:50%;
  background:var(--t1);cursor:pointer;
}
.mini-player-vol-range::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;background:var(--t1);cursor:pointer;border:none;
}
.mini-player-hide{
  position:relative;flex-shrink:0;width:26px;height:26px;border-radius:8px;
  margin-left:4px;padding:0;
  border:1px solid transparent;background:transparent;
  color:var(--t3);display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:.55;
  transition:opacity .14s,color .14s,background .14s,border-color .14s;
}
.mini-player-hide::before{
  content:"";position:absolute;left:-5px;top:50%;transform:translateY(-50%);
  width:1px;height:18px;background:rgba(255,255,255,.09);
}
.mini-player-hide svg{width:13px;height:13px}
.mini-player:hover .mini-player-hide,
.mini-player:focus-within .mini-player-hide{opacity:.85}
.mini-player-hide:hover,
.mini-player-hide:focus-visible{
  opacity:1;color:#ff6b6b;
  background:rgba(228,58,58,.12);border-color:rgba(228,58,58,.28);
}
.mini-player.is-minimized .mini-player-body{padding:0;justify-content:center;flex:0 0 auto}
.mini-player.is-minimized .mini-player-info,
.mini-player.is-minimized .mini-player-vol,
.mini-player.is-minimized .mini-player-hide{display:none}
.mini-player.is-minimized .mini-player-ico{width:32px;height:32px;min-width:32px;background:transparent}
.mini-player.is-minimized .mini-player-ico svg{width:19px;height:19px}

.ambience-picker{
  --ambience-offset-x:0px;
  position:absolute;left:0;right:0;bottom:calc(100% - 1px);z-index:8;height:52px;padding:7px;
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px 16px 13px 13px;
  overflow:visible;
  background:color-mix(in srgb,var(--panel-bg) 94%, #000 6%);
  box-shadow:0 14px 42px rgba(0,0,0,.5),0 -1px 0 rgba(255,255,255,.05) inset,0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  animation:ambiencePickerIn .16s cubic-bezier(.2,.9,.2,1) both;
}
.ambience-picker:not(.is-positioned){visibility:hidden}
.ambience-picker::before{
  content:"";position:absolute;left:12px;right:12px;bottom:-6px;height:6px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--panel-bg) 92%, #000 8%),color-mix(in srgb,var(--panel-bg) 82%, #000 18%));
  border-left:1px solid rgba(255,255,255,.09);
  border-right:1px solid rgba(255,255,255,.09);
  pointer-events:none;
}
.ambience-picker.is-sidebar{
  height:46px;padding:6px;gap:5px;border-radius:14px 14px 12px 12px;
}
.ambience-picker.is-collapsed-sidebar{
  left:calc(50% + var(--ambience-offset-x));right:auto;width:204px;height:48px;
  transform:translateX(-50%);
}
.ambience-picker.is-top-clamped{
  top:0;bottom:auto;
}
.ambience-picker.is-top-clamped::before{display:none}
.ambience-choice{
  position:relative;flex:1 1 0;min-width:0;height:38px;border:0;border-radius:12px;padding:0;
  display:flex;align-items:center;justify-content:center;
  background:transparent;color:var(--t2);cursor:pointer;
  transition:background .14s,color .14s,opacity .14s,transform .14s,box-shadow .14s;
}
.ambience-picker.is-sidebar .ambience-choice{height:34px;border-radius:10px}
.ambience-choice:hover,
.ambience-choice:focus-visible{
  background:rgba(255,255,255,.065);color:var(--t1);outline:none;
}
.ambience-choice:hover{transform:translateY(-1px)}
.ambience-choice.is-active{
  background:color-mix(in srgb,var(--acc) 15%, transparent);
  color:color-mix(in srgb,var(--acc) 76%, var(--t1));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--acc) 20%, transparent) inset;
}
.ambience-choice.is-active .ambience-choice-icon{
  filter:drop-shadow(0 0 10px color-mix(in srgb,var(--acc) 28%, transparent));
}
.ambience-choice.is-disabled{
  opacity:.38;cursor:not-allowed;
}
.ambience-choice.is-disabled:hover,
.ambience-choice.is-disabled:focus-visible{
  transform:none;background:transparent;color:var(--t2);
}
.ambience-choice-icon{
  width:28px;height:28px;min-width:28px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.045);color:currentColor;
}
.ambience-picker.is-sidebar .ambience-choice-icon{width:25px;height:25px;min-width:25px;border-radius:8px}
.ambience-choice-icon svg{width:17px;height:17px}
.ambience-picker.is-sidebar .ambience-choice-icon svg{width:15px;height:15px}
.ambience-choice[data-tip]::after{
  content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);
  transform:translate(-50%,3px);opacity:0;pointer-events:none;z-index:2;
  padding:4px 8px;border-radius:6px;border:1px solid rgba(255,255,255,.12);
  background:#252525;color:var(--t1);font:600 11px/1 var(--font);
  white-space:nowrap;box-shadow:0 8px 18px rgba(0,0,0,.32);
  transition:opacity .12s,transform .12s;
}
.ambience-choice:hover::after,
.ambience-choice:focus-visible::after{
  opacity:1;transform:translate(-50%,0);
}
.no-tooltips .ambience-choice::after{display:none!important}
@keyframes ambiencePickerIn{
  from{opacity:0}
  to{opacity:1}
}

/* ── INSTANT HOVER FEEDBACK ───────────────────── */
.widget-action,
.widget-action svg,
.weather-action-btn,
.weather-location-result,
.weather-empty-btn,
.weather-forecast-chip,
.time-tab,
.time-adjust-btn,
.time-btn,
.mini-player{
  transition:opacity .18s,transform .2s cubic-bezier(.25,0,.18,1);
}
.mini-player-hide{
  transition:opacity .14s,transform .16s cubic-bezier(.25,0,.18,1);
}
.mini-player-ico{
  transition:opacity .18s;
}
