:root {
  color-scheme: dark;
  --twc-navy: #031a3d;
  --twc-blue: #07579b;
  --twc-cyan: #0ea8c7;
  --twc-ice: #d6edff;
  --twc-white: #f6fbff;
  --twc-line: rgba(183, 235, 255, 0.26);
  --twc-shadow: 0 28px 80px rgba(0, 12, 38, 0.34);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--twc-navy); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--twc-white);
  background:
    radial-gradient(circle at 82% 3%, rgba(94, 218, 250, 0.28), transparent 29rem),
    radial-gradient(circle at 8% 34%, rgba(7, 87, 155, 0.58), transparent 34rem),
    linear-gradient(155deg, #020f25 0%, var(--twc-navy) 44%, #064f89 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: -30%;
  content: "";
  pointer-events: none;
}

body::before {
  opacity: 0.46;
  background:
    repeating-radial-gradient(ellipse at 22% 70%, transparent 0 34px, rgba(150, 232, 255, 0.14) 37px 40px, transparent 43px 78px),
    repeating-radial-gradient(ellipse at 70% 20%, transparent 0 27px, rgba(217, 250, 255, 0.16) 30px 33px, transparent 36px 66px);
  mix-blend-mode: screen;
  animation: twcCaustics 18s linear infinite alternate;
}

body::after {
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 42%, rgba(88, 215, 244, 0.09));
}

button,
a,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9beaff;
  outline-offset: 3px;
}

.twc-auth-check {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--twc-ice);
  text-align: center;
}

.twc-auth-mark { width: 94px; height: 94px; border: 1px solid rgba(255, 229, 154, .7); border-radius: 50%; background: #0b3692; box-shadow: 0 0 0 8px rgba(255, 229, 154, .08), 0 0 34px rgba(229, 185, 79, .34); animation: twcLogoPulse 1.8s ease-in-out infinite; }
.twc-auth-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes twcLogoPulse { 0%, 100% { opacity: .78; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 12px rgba(255, 229, 154, .12), 0 0 44px rgba(229, 185, 79, .46); } }
html[data-auth-state="allowed"] .twc-auth-check { display: none; }
html[data-auth-state="denied"] .twc-auth-check { opacity: 0; }

.twc-app { position: relative; z-index: 1; min-height: 100dvh; }
.twc-app[hidden] { display: none; }

.twc-topbar {
  position: sticky;
  z-index: 20;
  top: max(10px, env(safe-area-inset-top));
  display: flex;
  width: min(100% - 28px, 1500px);
  margin: 10px auto 0;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--twc-line);
  border-radius: 22px;
  background: rgba(2, 18, 45, 0.78);
  box-shadow: 0 18px 52px rgba(0, 10, 31, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
}

.twc-brand-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.twc-back-button {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(179, 233, 255, 0.3);
  border-radius: 15px;
  color: var(--twc-ice);
  background: linear-gradient(145deg, rgba(34, 150, 187, 0.28), rgba(3, 42, 86, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 11, 34, 0.2);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.twc-back-button:hover { transform: translateX(-2px); border-color: #8ce4fa; background: rgba(25, 150, 185, 0.3); }
.twc-back-button:focus-visible { outline: 3px solid rgba(140, 228, 250, 0.5); outline-offset: 3px; }
.twc-back-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }

.twc-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.twc-brand-mark { flex: 0 0 54px; width: 54px; height: 54px; animation: twcFloat 4.2s ease-in-out infinite; }
.twc-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.twc-brand-copy { display: grid; min-width: 0; gap: 2px; }
.twc-brand-copy small { color: #8edff4; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.twc-brand-copy strong { overflow: hidden; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(20px, 2.2vw, 30px); font-weight: 400; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }

.twc-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.twc-tool-button {
  display: inline-flex;
  min-height: 46px;
  padding: 6px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(179, 233, 255, 0.22);
  border-radius: 15px;
  color: var(--twc-ice);
  background: rgba(17, 96, 151, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.twc-tool-button:hover { transform: translateY(-2px); border-color: #8ce4fa; background: rgba(25, 150, 185, 0.22); }
.twc-tool-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.twc-tool-button span { font-size: 11px; font-weight: 700; }

.twc-main { width: min(100% - 32px, 1400px); margin: 0 auto; padding: 48px 0 max(60px, env(safe-area-inset-bottom)); }

.twc-hero {
  position: relative;
  display: grid;
  min-height: 410px;
  padding: clamp(28px, 6vw, 76px);
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  border: 1px solid var(--twc-line);
  border-radius: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(circle at 75% 48%, rgba(160, 237, 255, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(3, 26, 61, 0.92), rgba(7, 87, 155, 0.72));
  box-shadow: var(--twc-shadow);
}

.twc-hero::after {
  position: absolute;
  inset: auto -10% -30% 34%;
  height: 68%;
  border-radius: 50%;
  background: rgba(143, 232, 255, 0.12);
  content: "";
  transform: rotate(-8deg);
  animation: twcCurrent 8s ease-in-out infinite alternate;
}

.twc-hero-copy { position: relative; z-index: 2; }
.twc-eyebrow { margin: 0 0 8px; color: #8de5f8; font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.twc-hero h1 { max-width: 760px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(48px, 7.4vw, 104px); font-weight: 400; letter-spacing: -0.045em; line-height: 0.88; }
.twc-hero h1 em { color: #a7eaf8; font-weight: 400; }
.twc-intro { max-width: 620px; margin: 26px 0 0; color: var(--twc-ice); font-size: clamp(14px, 1.7vw, 19px); line-height: 1.65; }
.twc-verse-button,
.twc-reset-button,
.twc-action-button {
  min-height: 44px;
  border: 1px solid rgba(190, 239, 255, 0.38);
  border-radius: 999px;
  color: var(--twc-white);
  background: rgba(11, 123, 174, 0.28);
  cursor: pointer;
}
.twc-verse-button { margin-top: 24px; padding: 0 18px; font-weight: 700; }
.twc-hero-logo { position: relative; z-index: 2; justify-self: center; width: min(100%, 380px); animation: twcFloat 5.4s ease-in-out infinite; }
.twc-hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 44px rgba(0, 18, 50, 0.42)); }

.twc-notice { margin: 18px 0 -2px; padding: 13px 16px; border: 1px solid rgba(171, 232, 255, 0.34); border-radius: 14px; color: var(--twc-ice); background: rgba(2, 25, 58, 0.76); }

.twc-fuel {
  display: flex;
  margin-top: 22px;
  padding: 26px clamp(22px, 4vw, 42px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--twc-line);
  border-radius: 26px;
  background: rgba(2, 25, 58, 0.7);
  box-shadow: 0 18px 48px rgba(0, 10, 31, 0.2);
  backdrop-filter: blur(18px);
}
.twc-fuel h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(32px, 4vw, 54px); font-weight: 400; }
.twc-fuel p:not(.twc-eyebrow) { max-width: 720px; margin: 8px 0 0; color: var(--twc-ice); line-height: 1.55; }
.twc-fuel-state { flex: 0 0 auto; padding: 10px 14px; border: 1px dashed rgba(169, 233, 255, 0.46); border-radius: 999px; color: #a5eaff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.twc-radar { padding-top: 64px; }
.twc-section-heading { display: flex; margin-bottom: 20px; align-items: end; justify-content: space-between; gap: 20px; }
.twc-section-heading h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(38px, 5vw, 64px); font-weight: 400; }
.twc-reset-button { padding: 0 16px; }
.twc-radar-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.twc-radar-column { min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--twc-line); border-radius: 28px; background: rgba(3, 31, 70, 0.72); box-shadow: var(--twc-shadow); backdrop-filter: blur(18px); }
.twc-column-heading { display: flex; margin-bottom: 18px; align-items: center; gap: 13px; }
.twc-column-heading p { margin: 0; color: #8edff4; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.twc-column-heading h3 { margin: 1px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: 34px; font-weight: 400; }
.twc-column-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(170, 233, 255, 0.34); border-radius: 15px; color: #a3eaf9; background: rgba(20, 139, 181, 0.18); font-weight: 700; }
.twc-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.twc-radar-column .twc-column-heading { margin-bottom: 14px; }
.twc-radar-column .twc-column-heading h3 { font-size: 24px; }
.twc-radar-column .twc-column-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
.twc-radar-tile {
  display: grid;
  width: 100%;
  min-height: 0;
  padding: 11px 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  border: 1px solid rgba(175, 233, 255, 0.18);
  border-radius: 16px;
  color: inherit;
  background: rgba(1, 19, 48, 0.48);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.twc-radar-tile:hover { transform: translateY(-2px); border-color: rgba(155, 234, 255, 0.68); background: rgba(7, 66, 113, 0.46); }
.twc-tile-icon { grid-row: 1 / span 2; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: rgba(120, 200, 230, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.twc-tile-icon svg { width: 22px; height: 22px; display: block; }
.twc-radar-tile[data-tile-id="meta"] .twc-tile-icon { background: linear-gradient(135deg, #0a6cff, #8b3dff); }
.twc-radar-tile[data-tile-id="google-ads"] .twc-tile-icon { background: linear-gradient(135deg, #4285f4, #34a853 60%, #fbbc04); }
.twc-radar-tile[data-tile-id="instagram"] .twc-tile-icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.twc-radar-tile[data-tile-id="tiktok"] .twc-tile-icon { background: #101010; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 2px 0 0 -1px #25f4ee, -2px 0 0 -1px #fe2c55; }
.twc-radar-tile[data-tile-id="pinterest"] .twc-tile-icon { background: #ffffff; color: #e60023; }
.twc-radar-tile[data-tile-id="search-console"] .twc-tile-icon { background: linear-gradient(135deg, #4285f4, #1a73e8); }
.twc-radar-tile[data-tile-id="google-analytics"] .twc-tile-icon { background: linear-gradient(135deg, #f9ab00, #e37400); }
.twc-radar-tile strong { display: block; font-size: 13px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.twc-radar-tile small { display: block; margin-top: 2px; color: var(--twc-ice); font-size: 10px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twc-tile-copy { min-width: 0; align-self: end; }
.twc-tile-status { display: flex; align-items: center; gap: 6px; min-width: 0; align-self: start; }
.twc-tile-status b { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.twc-tile-status span { display: none; }
.twc-radar-tile[data-state="not-reviewed"] .twc-tile-status b { color: #a6c3d4; }
.twc-radar-tile[data-state="fresh"] .twc-tile-status b { color: #7ce7c1; }
.twc-radar-tile[data-state="aging"] .twc-tile-status b { color: #ffe6a2; }
.twc-radar-tile[data-state="due"] .twc-tile-status b { color: #ffaaa7; }

.twc-calendar-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-auto-rows: auto; column-gap: 24px; align-items: start; min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid rgba(255, 224, 160, 0.32); border-radius: 28px; background: linear-gradient(145deg, rgba(5, 42, 81, 0.84), rgba(55, 46, 65, 0.72)); box-shadow: var(--twc-shadow); }
.twc-calendar-panel > .twc-column-heading, .twc-calendar-intro { grid-column: 1 / -1; }
.twc-calendar-panel > .twc-column-heading h3 { font-size: clamp(34px, 4vw, 48px); }
.twc-calendar-intro { margin: -4px 0 18px; color: var(--twc-ice); line-height: 1.55; max-width: 760px; }
.twc-studio-status, .twc-drop, .twc-queue-details { grid-column: 1; }
.twc-calendar { grid-column: 2; grid-row: 3 / span 3; }
.twc-calendar { min-width: 0; }
.twc-calendar-loading, .twc-calendar-empty { padding: 28px 20px; border: 1px dashed rgba(186, 232, 247, 0.32); border-radius: 20px; color: var(--twc-ice); text-align: center; }
.twc-calendar-empty-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 12px; place-items: center; border: 1px solid rgba(255, 224, 160, 0.45); border-radius: 50%; color: #ffe0a0; font-size: 21px; }
.twc-calendar-empty h3 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 30px; font-weight: 400; }
.twc-calendar-empty p { margin: 8px auto 16px; max-width: 390px; line-height: 1.5; }
.twc-calendar-retry { min-height: 40px; padding: 0 15px; border: 1px solid rgba(190, 239, 255, 0.38); border-radius: 999px; color: var(--twc-white); background: rgba(11, 123, 174, 0.28); cursor: pointer; font-weight: 700; }
.twc-calendar-summary { display: grid; gap: 12px; }
.twc-next-post { padding: 17px; border: 1px solid rgba(255, 224, 160, 0.3); border-radius: 18px; background: rgba(0, 15, 40, 0.42); }
.twc-calendar-kicker { display: block; color: #ffe0a0; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.twc-next-post strong { display: block; margin-top: 5px; font-family: "Instrument Serif", Georgia, serif; font-size: 28px; font-weight: 400; }
.twc-next-post p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--twc-ice); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.twc-calendar-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.twc-calendar-stats span { padding: 8px 10px; border: 1px solid rgba(179, 233, 255, .2); border-radius: 999px; color: #b9e5f1; font-size: 10px; }
.twc-calendar-stats b { color: var(--twc-white); }
.twc-calendar-months { display: grid; gap: 19px; margin-top: 24px; }
.twc-calendar-month h3 { margin: 0 0 9px; color: #a8eafb; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.twc-calendar-posts { display: grid; gap: 8px; }
.twc-calendar-post { display: grid; grid-template-columns: 40px 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(180, 231, 247, .16); border-radius: 15px; background: rgba(1, 19, 48, .42); }
.twc-post-date { display: grid; justify-items: center; color: #b8dce8; }
.twc-post-date b { font-family: "Instrument Serif", Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1; }
.twc-post-date span { margin-top: 4px; font-size: 9px; text-transform: uppercase; }
.twc-post-media { width: 48px; height: 58px; border-radius: 10px; object-fit: cover; background: rgba(67, 164, 196, .22); }
.twc-post-media--empty { display: grid; place-items: center; color: #ffe0a0; font-size: 18px; }
.twc-post-copy { min-width: 0; }
.twc-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #8edff4; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.twc-post-meta b { color: #ffe0a0; font-size: 8px; }
.twc-calendar-post[data-status="published"] .twc-post-meta b { color: #7ce7c1; }
.twc-calendar-post[data-status="failed"] .twc-post-meta b { color: #ffaaa7; }
.twc-post-copy time { display: block; margin-top: 4px; color: #a8d4e2; font-size: 10px; }
.twc-post-copy p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--twc-white); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.twc-post-copy a { display: inline-block; margin-top: 6px; color: #a8eafb; font-size: 10px; font-weight: 700; text-decoration: none; }

.twc-dialog {
  width: min(92vw, 680px);
  max-height: min(88dvh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(177, 235, 255, 0.42);
  border-radius: 28px;
  color: var(--twc-white);
  background: linear-gradient(145deg, rgba(2, 23, 56, 0.98), rgba(7, 70, 117, 0.98));
  box-shadow: 0 30px 100px rgba(0, 8, 28, 0.72);
}
.twc-dialog::backdrop { background: rgba(0, 10, 28, 0.7); backdrop-filter: blur(10px); }
.twc-dialog-shell { padding: clamp(20px, 4vw, 34px); }
.twc-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.twc-dialog-heading h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 42px; font-weight: 400; }
.twc-dialog-close { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(181, 235, 255, 0.3); border-radius: 50%; color: var(--twc-white); background: rgba(17, 113, 160, 0.24); cursor: pointer; font-size: 25px; }
.twc-dialog-body { margin-top: 20px; }
.twc-field { display: grid; margin-top: 14px; gap: 7px; color: var(--twc-ice); font-size: 12px; font-weight: 700; }
.twc-field input,
.twc-field textarea {
  width: 100%;
  border: 1px solid rgba(179, 236, 255, 0.3);
  border-radius: 15px;
  color: var(--twc-white);
  background: rgba(0, 15, 40, 0.64);
}
.twc-field input { min-height: 48px; padding: 0 14px; }
.twc-field textarea { min-height: 190px; padding: 14px; resize: vertical; line-height: 1.55; }
.twc-action-row { display: flex; margin-top: 16px; flex-wrap: wrap; gap: 9px; }
.twc-action-button { padding: 0 16px; font-weight: 700; }
.twc-action-button--danger { border-color: rgba(255, 166, 161, 0.42); color: #ffd1cf; background: rgba(138, 38, 46, 0.24); }
.twc-tool-copy { margin: 0; color: var(--twc-ice); line-height: 1.6; }
.twc-tool-status { min-height: 24px; margin: 12px 0 0; color: #9ce8fa; }
.twc-calc-result { min-height: 72px; padding: 15px; border: 1px solid var(--twc-line); border-radius: 16px; background: rgba(0, 15, 40, 0.55); font: 600 28px/1.35 ui-monospace, monospace; overflow-wrap: anywhere; }
.twc-timer-display { margin: 12px 0 4px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(64px, 14vw, 112px); line-height: 1; text-align: center; }
.twc-local-label { display: inline-flex; margin-top: 14px; padding: 7px 10px; border: 1px solid rgba(178, 236, 255, 0.25); border-radius: 999px; color: #9ce6f7; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.twc-verse { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(36px, 7vw, 58px); line-height: 1.08; }
.twc-verse cite { display: block; margin-top: 18px; color: #9fe8f8; font: 700 12px/1.4 "DM Sans", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.twc-live-region { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes twcFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(1.5deg); }
}

@keyframes twcCurrent {
  from { transform: translate3d(-5%, 0, 0) rotate(-8deg) scaleX(1); }
  to { transform: translate3d(6%, -14px, 0) rotate(-2deg) scaleX(1.12); }
}

@keyframes twcCaustics {
  from { transform: translate3d(-4%, -3%, 0) rotate(0deg); }
  to { transform: translate3d(7%, 5%, 0) rotate(9deg); }
}

@media (max-width: 980px) {
  .twc-topbar { align-items: stretch; flex-direction: column; }
  .twc-brand-cluster { width: 100%; }
  .twc-toolbar { justify-content: stretch; }
  .twc-tool-button { flex: 1 1 110px; justify-content: center; }
  .twc-hero { grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.7fr); }
}

@media (max-width: 760px) {
  .twc-topbar { width: calc(100% - 18px); border-radius: 18px; }
  .twc-brand-copy strong { font-size: 21px; }
  .twc-toolbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .twc-tool-button { min-width: 0; min-height: 48px; padding: 5px; flex-direction: column; gap: 2px; border-radius: 13px; }
  .twc-tool-button span { font-size: 9px; }
  .twc-main { width: calc(100% - 20px); padding-top: 22px; }
  .twc-hero { min-height: 600px; padding: 28px 24px; align-content: start; grid-template-columns: 1fr; }
  .twc-hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .twc-hero-logo { width: min(78%, 340px); margin-top: -12px; }
  .twc-fuel { align-items: flex-start; flex-direction: column; }
  .twc-section-heading { align-items: flex-start; flex-direction: column; }
  .twc-radar-grid { grid-template-columns: 1fr; }
  .twc-radar { padding-top: 46px; }
  .twc-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .twc-radar-tile { padding: 10px; }
}

@media (max-width: 420px) {
  .twc-brand-cluster { gap: 7px; }
  .twc-back-button { flex-basis: 42px; width: 42px; min-width: 42px; height: 42px; border-radius: 13px; }
  .twc-brand-mark { flex-basis: 46px; width: 46px; height: 46px; }
  .twc-brand-copy small { font-size: 9px; }
  .twc-brand-copy strong { font-size: 18px; }
  .twc-radar-tile strong { font-size: 12px; }
  .twc-dialog { width: calc(100vw - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Instagram Studio: publisher status + queue form ---- */
.twc-studio-status { box-sizing: border-box; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(180, 231, 247, .18); border-radius: 16px; background: rgba(1, 19, 48, .42); }
.twc-studio-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #b9c8d6; box-shadow: 0 0 0 4px rgba(185, 200, 214, .16); }
.twc-studio-status[data-state="connected"] .twc-studio-dot { background: #7ce7c1; box-shadow: 0 0 0 4px rgba(124, 231, 193, .18); }
.twc-studio-status[data-state="paused"] .twc-studio-dot { background: #ffe0a0; box-shadow: 0 0 0 4px rgba(255, 224, 160, .18); }
.twc-studio-status[data-state="disconnected"] .twc-studio-dot,
.twc-studio-status[data-state="error"] .twc-studio-dot { background: #ffaaa7; box-shadow: 0 0 0 4px rgba(255, 170, 167, .18); }
.twc-studio-copy { min-width: 0; flex: 1 1 auto; }
.twc-studio-copy strong { display: block; color: var(--twc-white); font-size: 14px; }
.twc-studio-copy p { margin: 2px 0 0; color: var(--twc-ice); font-size: 12px; line-height: 1.45; }
.twc-studio-copy p b { color: #ffaaa7; font-weight: 600; }
.twc-studio-connect { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid rgba(255, 224, 160, .5); border-radius: 999px; color: #ffe0a0; background: rgba(255, 224, 160, .1); font-size: 12px; font-weight: 700; text-decoration: none; }
.twc-queue { display: grid; gap: 12px; min-width: 0; margin: 0 0 22px; padding: 16px; border: 1px solid rgba(255, 224, 160, .26); border-radius: 20px; background: rgba(1, 19, 48, .5); }
.twc-queue-heading h4 { margin: 3px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: 24px; font-weight: 400; color: var(--twc-white); }
.twc-queue-file { box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px dashed rgba(186, 232, 247, .4); border-radius: 15px; color: var(--twc-ice); cursor: pointer; }
.twc-queue-file:hover, .twc-queue-file:focus-within { border-color: #ffe0a0; color: var(--twc-white); }
.twc-queue-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.twc-queue-file-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 224, 160, .45); color: #ffe0a0; font-size: 20px; }
.twc-queue-file.has-file { border-style: solid; border-color: rgba(124, 231, 193, .5); }
.twc-queue-field { display: grid; gap: 5px; min-width: 0; }
.twc-queue-field > span { color: #a8eafb; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.twc-queue-field small { color: var(--twc-ice); font-weight: 500; letter-spacing: 0; text-transform: none; }
.twc-queue-field textarea, .twc-queue-field input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid rgba(180, 231, 247, .22); border-radius: 12px; background: rgba(3, 26, 61, .7); color: var(--twc-white); font: inherit; font-size: 14px; resize: vertical; }
.twc-queue-field textarea:focus, .twc-queue-field input:focus { outline: 2px solid rgba(255, 224, 160, .6); outline-offset: 1px; }
.twc-queue-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.twc-queue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.twc-queue-submit { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ffe0a0, #f0b451); color: #1b1200; font-weight: 700; cursor: pointer; }
.twc-queue-submit[disabled] { opacity: .6; cursor: progress; }
.twc-queue-hint { color: var(--twc-ice); font-size: 12px; }
.twc-queue-hint b { color: #ffe0a0; }
.twc-post-media--video { object-fit: cover; }
@media (max-width: 960px) {
  .twc-calendar-panel { grid-template-columns: minmax(0, 1fr); }
  .twc-calendar-panel > *, .twc-calendar { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .twc-studio-status { flex-wrap: wrap; }
  .twc-queue-row { grid-template-columns: 1fr; }
}
.twc-drop { display: grid; gap: 10px; margin: 0 0 14px; padding: 16px; border: 1px solid rgba(124, 231, 193, .32); border-radius: 20px; background: linear-gradient(145deg, rgba(1, 19, 48, .58), rgba(9, 60, 78, .5)); }
.twc-drop-copy { margin: 0; color: var(--twc-ice); font-size: 13px; line-height: 1.5; }
.twc-drop-copy code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--twc-white); font-size: 12px; }
.twc-drop-copy b { color: var(--twc-white); font-weight: 600; }
.twc-drop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.twc-drop-link { display: inline-flex; align-items: center; text-decoration: none; }
.twc-drop-repo { color: #a8eafb; font-size: 12px; font-weight: 600; }
.twc-queue-details { margin: 0 0 22px; }
.twc-queue-details > summary { cursor: pointer; color: #a8eafb; font-size: 12px; font-weight: 600; padding: 6px 2px; list-style: none; }
.twc-queue-details > summary::before { content: "▸ "; }
.twc-queue-details[open] > summary::before { content: "▾ "; }
.twc-queue-details > .twc-queue { margin-top: 10px; margin-bottom: 0; }
