/* AdBuddy AI workspace — one type scale, one interaction language. */
#app {
  --navy: #102033;
  --ink: #102033;
  --muted: #607086;
  --blue: #255cf5;
  --gold: #255cf5;
  --line: #e4e9f1;
  --bg: #f6f8fc;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "AdBuddy Sans", "Noto Sans Devanagari", "AdBuddy Symbols", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}
#app *, #app *::before, #app *::after { box-sizing: border-box; }
#app button, #app input, #app select, #app textarea { font-family: inherit; }
#app h1, #app h2, #app h3 { color: var(--ink); font-weight: 650; }
#app h1 { font-size: clamp(28px, 2.7vw, 36px); letter-spacing: -1.25px; line-height: 1.22; }
#app h2 { font-size: 25px; letter-spacing: -.7px; line-height: 1.3; }
#app h3, #app .card h3 { font-size: 17px; letter-spacing: -.35px; line-height: 1.4; }
#app p, #app .muted { color: var(--muted); }
#app .mini, #app .metric-note { font-size: 12px; line-height: 1.75; }
#app .eyebrow { color: #57708c; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.6; margin-bottom: 10px; }
#app .row, #app .actions { gap: 14px; }
#app .row > *, #app .actions > * { min-width: 0; }
#app .btn {
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 9px;
  border: 1px solid #255cf5;
  background: #255cf5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.1px;
  box-shadow: 0 3px 7px #255cf514;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#app .btn:hover:not(:disabled) { background: #194de0; border-color: #194de0; box-shadow: 0 4px 12px #255cf525; }
#app .btn.light { color: #33455d; border-color: #dce3ee; background: #fff; box-shadow: 0 1px 2px #10203303; }
#app .btn.light:hover:not(:disabled) { background: #f8faff; border-color: #bfcde5; box-shadow: none; }
#app .btn.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
#app button:disabled { opacity: .52; box-shadow: none; }
#app .link { font-size: 12px; font-weight: 600; color: #255cf5; line-height: 1.7; }
#app .link:hover { color: #1743b8; text-decoration: underline; text-underline-offset: 4px; }
#app :focus-visible { outline: 3px solid #aac2ff; outline-offset: 3px; }

/* Persistent product context and a quieter sidebar. */
#app .sidebar {
  width: 242px;
  padding: 25px 16px 18px;
  border-right: 1px solid #e3e8f0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d2dbea transparent;
  box-shadow: none;
}
#app .sidebar > .approved-logo { width: 116px; height: 84px; min-width: 116px; margin: -7px 0 17px 6px !important; flex-shrink: 0; }
#app .sidebar > .approved-logo img { width: 145px !important; height: 145px !important; top: -32px; left: -14px; }
#app .workspace-brand { color: #718099; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 0 13px; margin: 24px 0 9px; }
#app .sidebar > .eyebrow { margin: 25px 13px 9px !important; color: #65768c !important; font-size: 12px; letter-spacing: 1.5px; }
#app .workspace-product {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; text-align: left; border: 1px solid #e1e8f2;
  border-radius: 10px; background: #f8faff; color: #193153; line-height: 1.4;
  flex-shrink: 0;
}
#app .workspace-product:hover { background: #f0f5ff; border-color: #c4d4f4; }
#app .workspace-product .product-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #e8efff; color: #255cf5; flex-shrink: 0; font-size: 18px; }
#app .workspace-product .product-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
#app .workspace-product b, #app .workspace-product strong { font-size: 12px; font-weight: 650; }
#app .workspace-product small { font-size: 12px; color: #647994; }
#app .workspace-product .product-arrow { margin-left: auto; color: #708198; font-size: 15px; }
#app .nav { gap: 5px; margin: 0 0 25px; }
#app .nav button { position: relative; min-height: 44px; padding: 10px 13px; gap: 12px; font-size: 13px; font-weight: 500; color: #65758a; border-radius: 8px; line-height: 1.5; transition: background .15s, color .15s; }
#app .nav button:hover { color: #1c467e; background: #f5f8fd; }
#app .nav button.active { color: #255cf5; background: #edf2ff; font-weight: 650; }
#app .nav button.active::after { content: ""; position: absolute; right: 12px; width: 5px; height: 5px; background: #255cf5; border-radius: 50%; }
#app .nav svg { width: 18px; height: 18px; flex-shrink: 0; }
#app .sidefoot { padding: 17px 12px 0; border-color: #e9edf4; font-size: 12px; }
#app .sidefoot b { font-size: 12px; font-weight: 650; }
#app .sidefoot p { font-size: 12px; line-height: 1.7; margin: 5px 0 12px; color: #65768c; }
#app .sidefoot .link { font-size: 12px; color: #64748b; }
#app #closemenu { display: none !important; }

/* Workspace framing. */
#app .workspace { margin-left: 242px; min-width: 0; }
#app .topbar { height: 76px; padding: 0 34px; border-color: #e6ebf2; gap: 20px; background: #ffffffed; }
#app .topbar .mini { font-size: 12px; }
#app #breadcrumb { color: #344a65; font-weight: 600; }
#app .topbar .actions { flex-wrap: nowrap; }
#app .topbar .avatar { width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #dce5fa; background: #edf2ff; color: #255cf5; font-size: 12px; font-weight: 650; }
#app #topName { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #4a5c73; }
#app .topbar .tag { font-size: 11px; padding: 4px 7px; letter-spacing: .5px; color: #6c7c94; border-color: #e3e9f2; }
#app .content { max-width: 1530px; padding: 36px 34px 58px; }
#app .headline { margin-bottom: 25px; align-items: flex-start; }
#app .headline > div:first-child { max-width: 780px; }
#app .headline p { font-size: 13px; line-height: 1.8; margin-top: 10px; color: #6d7d92; max-width: 730px; }
#app .headline > .actions { padding-top: 25px; flex-shrink: 0; }
#app .headline > .btn { align-self: center; }
#app .grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#app .grid > *, #app .stack, #app .card, #app .fields > * { min-width: 0; }
#app .stack { gap: 22px; }
#app .card { padding: 25px; border: 1px solid #e4e9f1; border-radius: 16px; background: #fff; box-shadow: 0 3px 6px #132b4602; }
#app .sectionhead { margin-bottom: 18px; gap: 14px; }
#app .sectionhead h3 { font-size: 16px; }
#app .sectionhead .link { white-space: nowrap; font-size: 12px; }

/* Real account metrics; decoration never substitutes for customer data. */
#app .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 23px 0 26px; }
#app .stat { position: relative; overflow: hidden; padding: 21px 22px 19px; border-radius: 12px; border: 1px solid #e3e9f2; background: #fff; }
#app .stat::after { content: ""; position: absolute; right: 20px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: #255cf5; box-shadow: 0 0 0 5px #edf2ff; }
#app .stat:nth-child(2)::after { background: #c88a31; box-shadow: 0 0 0 5px #fff7e9; }
#app .stat:nth-child(3)::after { background: #1e9c78; box-shadow: 0 0 0 5px #eaf8f2; }
#app .stat:nth-child(4)::after { background: #8764da; box-shadow: 0 0 0 5px #f3effd; }
#app .stat label { font-size: 12px; font-weight: 500; color: #718097; line-height: 1.5; padding-right: 18px; }
#app .stat b { font-size: 32px; font-weight: 650; letter-spacing: -1.25px; line-height: 1.3; margin: 13px 0 4px; font-variant-numeric: tabular-nums; color: #152b46; }
#app .stat span { display: block; font-size: 12px; line-height: 1.5; color: #65768c; }
#app .notice { padding: 13px 17px; border: 1px solid #eee1bf; border-radius: 9px; background: #fffcf3; color: #947130; font-size: 12px; line-height: 1.8; margin: 19px 0; }
#app #launchNotice { background: #eef4ff; border-color: #dee8fc; color: #4a6490; margin: 0 0 20px; }
#app #launchNotice:empty { display: none; }
#app .hero-card { min-height: 255px; padding: 29px 31px; background: linear-gradient(115deg, #102542 0%, #173a6d 100%); border: 0; box-shadow: 0 5px 15px #183c6810; isolation: isolate; }
#app .hero-card::after { content: ""; width: 210px; height: 210px; top: 25px; right: -65px; border: 36px solid #ffffff05; border-radius: 50%; z-index: -1; }
#app .hero-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -34px; top: 54px; border: 1px solid #ffffff15; border-radius: 50%; z-index: -1; }
#app .hero-card .eyebrow { color: #8dbaff !important; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 14px; }
#app .hero-card h2 { color: #fff; max-width: 390px; font-size: 28px; line-height: 1.3; letter-spacing: -.7px; }
#app .hero-card p { max-width: 390px; color: #a5b9d6; font-size: 12px; line-height: 1.8; margin: 13px 0 22px; }
#app .hero-card .btn { color: #18335b; background: #fff; border-color: #fff; min-height: 42px; font-size: 12px; box-shadow: none; }
#app .hero-card .btn:hover { background: #edf3ff; border-color: #edf3ff; }
#app .progress { height: 5px; background: #eef2f7; margin: 21px 0 16px; border-radius: 5px; }
#app .progress div { background: #255cf5; border-radius: 5px; transition: width .3s; }
#app .detail > div { gap: 18px; font-size: 12px; padding: 13px 0; line-height: 1.6; border-color: #edf0f5; align-items: baseline; }
#app .detail span { color: #77879c; }
#app .detail b { font-weight: 550; color: #324861; text-align: right; overflow-wrap: anywhere; }
#app .detail span { flex-shrink: 0; }
#app .tag { border-radius: 6px; padding: 4px 8px; font-size: 12px; line-height: 1.5; letter-spacing: .1px; color: #6c7e95; background: #fafbfd; border-color: #e4eaf2; font-weight: 500; }
#app .tag.good { color: #238460; background: #effaf5; border-color: #d8eee3; }
#app .tag.warn { color: #b37b27; background: #fff9ef; border-color: #f4e5ca; }
#app .dashboard-tip { display: flex; align-items: center; gap: 15px; margin-top: 22px; padding: 19px 22px; border: 1px solid #e3e9f3; border-radius: 12px; background: #fff; }
#app .dashboard-tip > div { flex: 1; min-width: 0; }
#app .dashboard-tip h3 { font-size: 14px; }
#app .dashboard-tip p { font-size: 12px; margin-top: 4px; }

/* Forms and upload controls. */
#app label { font-size: 12px; font-weight: 600; line-height: 1.55; color: #3e526c; margin-bottom: 8px; }
#app .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 20px; }
#app .field { margin-bottom: 23px; }
#app input:not([type="checkbox"]), #app select, #app textarea { border: 1px solid #dce4ef; border-radius: 8px; min-height: 46px; padding: 11px 13px; color: #273e5b; background: #fff; font-size: 13px; line-height: 1.6; box-shadow: 0 1px 2px #132b4602; transition: border-color .15s, box-shadow .15s; }
#app input:not([type="checkbox"]):hover, #app select:hover, #app textarea:hover { border-color: #b9c8de; }
#app input:not([type="checkbox"]):focus, #app select:focus, #app textarea:focus { border-color: #7398fa; box-shadow: 0 0 0 3px #255cf50b; outline: 0; }
#app input::placeholder, #app textarea::placeholder { color: #65768c; }
#app input[readonly] { color: #6f8097; background: #f9fafc; }
#app select { padding-right: 28px; }
#app textarea { min-height: 110px; }
#app #topic { font-size: 16px !important; padding: 14px 15px !important; min-height: 54px; }
#app #createForm > select { margin-bottom: 22px; }
#app .pill { border: 1px solid #e8eef7; background: #f7faff; border-radius: 9px; padding: 13px 15px; color: #2e4a72; }
#app .pill strong { font-size: 13px; font-weight: 600; }
#app .pill p { font-size: 12px; margin-top: 4px; }
#app input[type="file"] { padding: 7px; min-height: 47px; font-size: 12px; line-height: 1.8; color: #65768c; background: #fbfcfe; }
#app input[type="file"]::file-selector-button { font: inherit; font-size: 12px; font-weight: 600; margin-right: 12px; border: 0; border-radius: 5px; padding: 7px 12px; color: #3c5f97; background: #edf2fa; cursor: pointer; }
#app input[type="file"]::file-selector-button:hover { background: #e4ecfc; }
#app #advisorPhoto { margin-bottom: 20px; }
#app .check { gap: 11px; margin: 24px 0; }
#app .check input { width: 16px; height: 16px; accent-color: #255cf5; flex-shrink: 0; margin-top: 3px; }
#app .check label { color: #63758c; font-size: 12px; font-weight: 400; line-height: 1.9; }
#app #mediaStatus, #app #profileSetupStatus { overflow-wrap: anywhere; }
#app #profileSetupStatus { margin-top: 12px; }
#app #refreshSetupStatus { margin-top: 10px; }
#app .steps { gap: 23px; margin-top: 25px; }
#app .step { gap: 13px; }
#app .step > span { background: #edf3ff; color: #5074b5; font-size: 12px; width: 29px; height: 29px; min-width: 29px; font-weight: 600; }
#app .step b { color: #344c6b; font-size: 13px; font-weight: 600; }
#app .step p { color: #65768c; font-size: 12px; line-height: 1.75; margin-top: 3px; }

/* Content library and account tables. Horizontal scroll stays inside each card. */
#app #reelList, #app #recent, #app .tablewrap, #app #adminBody { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cfdaea transparent; }
#app table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; line-height: 1.6; }
#app th { background: #f8fafc; font-weight: 600; color: #65768c; font-size: 12px; letter-spacing: .15px; }
#app th, #app td { padding: 16px 14px; border-bottom: 1px solid #edf1f6; }
#app th:first-child { border-radius: 7px 0 0 7px; }
#app th:last-child { border-radius: 0 7px 7px 0; }
#app td { color: #50657f; }
#app td.topic { color: #304866; font-weight: 500; min-width: 150px; max-width: 340px; overflow-wrap: anywhere; }
#app tbody tr:last-child td { border-bottom: 0; }
#app tbody tr:hover { background: #fcfdff; }
#app table .btn { font-size: 12px; min-height: 32px; padding: 6px 10px; white-space: nowrap; }
#app table .tag { font-size: 12px; }
#app #recent table { font-size: 12px; }
#app #recent th, #app #recent td { padding: 13px 10px; }
#app #recent td.topic { min-width: 130px; }
#app .empty { padding: 43px 17px; color: #65768c; }
#app .empty .symbol { width: 45px; height: 45px; display: grid; place-items: center; padding: 0; border-radius: 12px; background: #f7f9fe; border: 1px solid #e7edf7; font-size: 22px; color: #9eb3d8; margin: 0 auto 15px; }
#app .empty h3 { font-size: 14px; font-weight: 550; color: #4a607d; letter-spacing: -.15px; margin-bottom: 7px; }
#app .empty p { font-size: 12px; line-height: 1.8; color: #65768c; max-width: 420px; margin-inline: auto; }
#app #searchReels { padding-left: 15px; font-size: 12px; }
#app .tabs { gap: 6px; margin: 24px 0 18px; }
#app .tabs button { min-height: 38px; padding: 8px 14px; font-size: 12px; border-color: #e2e8f1; border-radius: 8px; background: #fff; color: #6c7e96; }
#app .tabs button.active { color: #255cf5; background: #edf2ff; border-color: #d6e2ff; }
#app .report-grid { gap: 16px; }
#app .report-grid .card b { font-size: 29px; font-weight: 650; }
#app .credit-choices button { padding: 15px 8px; border-radius: 8px; border-color: #e1e7f1; font-size: 12px; }
#app .credit-choices button.active { border-color: #87a8fc; background: #f1f5ff; color: #255cf5; }

/* Product platform and learning center. */
#app .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
#app .product-card { padding: 29px; background: #fff; border: 1px solid #e1e8f2; border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; }
#app .product-card > .product-icon { height: 46px; width: 46px; margin-bottom: 22px; border-radius: 12px; background: #edf2ff; color: #255cf5; display: grid; place-items: center; font-size: 23px; }
#app .product-card h2, #app .product-card h3 { font-size: 21px; margin: 13px 0 10px; }
#app .product-card p { font-size: 13px; line-height: 1.85; margin-bottom: 22px; }
#app .product-card .btn { margin-top: auto; }
#app .product-card.planned { background: #fafbfd; border-style: dashed; }
#app .product-card.planned .product-icon { background: #edf0f5; color: #94a2b6; }
#app .tutorial-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); gap: 23px; align-items: start; }
#app .tutorial-player { border: 1px solid #e0e7f2; border-radius: 14px; background: #fff; overflow: hidden; }
#app .tutorial-player video { width: 100%; display: block; max-height: none; aspect-ratio: 16 / 9; object-fit: contain; background: #0c192c; border-radius: 0; }
#app .tutorial-player > div, #app .tutorial-player > p { padding: 20px 23px; }
#app .tutorial-player h3 { font-size: 16px; }
#app .tutorial-player p { font-size: 12px; line-height: 1.8; }
#app .tutorial-chapters { display: grid; gap: 9px; }
#app .tutorial-chapters button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; background: #fff; border: 1px solid #e3eaf4; border-radius: 9px; color: #425a79; text-align: left; font-size: 12px; line-height: 1.65; }
#app .tutorial-chapters button:hover { background: #f2f6ff; border-color: #c9dafb; }
#app .tutorial-chapters button span:first-child { font-size: 12px; color: #7992b7; font-variant-numeric: tabular-nums; }
#app .tutorial-chapters button strong { font-size: 12px; font-weight: 600; }

/* Shared overlay typography. */
dialog { font-family: "AdBuddy Sans", "Noto Sans Devanagari", "AdBuddy Symbols", ui-sans-serif, system-ui, sans-serif; border: 1px solid #e1e8f2; border-radius: 16px; padding: 27px; box-shadow: 0 25px 90px #0d214535; max-height: 88dvh; overflow: auto; }
dialog::backdrop { background: #0d1d36a3; backdrop-filter: blur(4px); }
dialog h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.6px; }
dialog p, dialog .mini, dialog small, dialog .legal { font-size: 13px; line-height: 1.8; }
dialog .btn { font-size: 13px; border-radius: 8px; }
dialog #closeDialog { width: 35px; height: 35px; min-width: 35px; padding: 0; }
dialog #dialogBody { overflow-wrap: anywhere; }
#toast { font-family: "AdBuddy Sans", "Noto Sans Devanagari", "AdBuddy Symbols", ui-sans-serif, system-ui, sans-serif; font-size: 13px; line-height: 1.7; border-radius: 10px; padding: 14px 20px; background: #142b49; box-shadow: 0 8px 30px #10233e25; }

@media (min-width: 1600px) {
  #app .content { padding: 44px 46px 64px; }
  #app .topbar { padding-inline: 46px; }
  #app .grid { gap: 26px; }
  #app .stack { gap: 26px; }
  #app .card { padding: 29px; }
  #app .hero-card { padding: 34px 36px; }
  #app .hero-card h2 { font-size: 31px; }
}
@media (max-width: 1200px) {
  #app .content { padding: 30px 26px 48px; }
  #app .topbar { padding-inline: 26px; }
  #app .headline.row { flex-wrap: wrap; }
  #app .headline > .actions { padding-top: 0; }
  #app .stats { gap: 12px; }
  #app .stat { padding: 18px; }
  #app .stat::after { right: 17px; top: 21px; }
  #app .stat label { font-size: 12px; }
  #app .grid { grid-template-columns: minmax(0, 1fr); }
  #app #dashboard > .grid { grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr); }
  #app .card { padding: 22px; }
  #app .hero-card { padding: 26px; }
  #app .hero-card h2 { font-size: 25px; }
  #app .tutorial-grid { grid-template-columns: minmax(0, 1fr); }
  #app .tutorial-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  #app .sidebar { width: 220px; padding-inline: 13px; }
  #app .workspace { margin-left: 220px; }
  #app .content { padding: 28px 23px 45px; }
  #app .topbar { padding-inline: 23px; }
  #app .topbar .tag { display: none; }
  #app #dashboard > .grid { grid-template-columns: minmax(0, 1fr); }
  #app #dashboard > .grid > .stack:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #app .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .stat label { font-size: 12px; }
  #app .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #app .sidebar { display: none; width: 260px; max-width: calc(100vw - 42px); padding: 22px 16px 20px; box-shadow: 0 0 0 100vmax #11213f70; z-index: 50; }
  #app .sidebar.open { display: flex; }
  #app .workspace { margin-left: 0; }
  #app #closemenu { display: block !important; min-height: 35px; }
  #app .mobilemenu { display: grid; place-items: center; width: 31px; height: 35px; font-size: 19px; color: #5d718e; padding: 0; }
  #app .topbar { min-height: 65px; height: auto; padding: 14px 18px; gap: 12px; }
  #app .topbar .actions { gap: 9px; }
  #app .topbar .mini { font-size: 12px; }
  #app #topName { max-width: 105px; font-size: 12px; }
  #app .topbar .avatar { width: 29px; height: 29px; font-size: 12px; }
  #app .content { padding: 26px 18px 42px; }
  #app h1 { font-size: 29px; letter-spacing: -.9px; }
  #app .eyebrow { font-size: 11px; }
  #app .headline { margin-bottom: 22px; }
  #app .headline p { font-size: 12px; }
  #app .headline.row { gap: 18px; }
  #app .headline > .btn { min-height: 39px; font-size: 12px; padding: 9px 13px; }
  #app .headline > .actions { gap: 8px; }
  #app .headline .btn { min-height: 40px; font-size: 12px; padding: 9px 14px; }
  #app .stats { gap: 11px; margin: 20px 0 22px; }
  #app .stat { padding: 17px 16px; }
  #app .stat::after { width: 6px; height: 6px; right: 17px; top: 22px; box-shadow: 0 0 0 4px #edf2ff; }
  #app .stat b { font-size: 29px; margin-top: 12px; }
  #app .stat label { font-size: 12px; }
  #app .stat span { font-size: 11px; }
  #app .grid, #app .stack { gap: 18px; }
  #app .card { padding: 21px; border-radius: 12px; }
  #app .hero-card { padding: 27px 24px; }
  #app .hero-card h2 { font-size: 26px; }
  #app .hero-card p { font-size: 12px; }
  #app .fields { grid-template-columns: 1fr; gap: 20px; }
  #app .fields .full { grid-column: auto; }
  #app input:not([type="checkbox"]), #app select, #app textarea { font-size: 16px; }
  #app input[type="file"] { font-size: 12px; }
  #app #dashboard > .grid > .stack:last-child { grid-template-columns: minmax(0, 1fr); }
  #app .notice { font-size: 12px; padding: 12px 15px; }
  #app .dashboard-tip { align-items: flex-start; flex-wrap: wrap; padding: 19px; }
  #app .dashboard-tip > div { flex-basis: calc(100% - 55px); }
  #app .tutorial-chapters { grid-template-columns: 1fr; }
  #app .tutorial-player > div, #app .tutorial-player > p { padding: 18px; }
  #app .product-card { padding: 25px; }
  #app .report-grid { grid-template-columns: 1fr; }
  #app .detail > div { gap: 12px; }
  #app .detail span { flex-shrink: 1; }
  #app .detail b { max-width: 65%; }
  dialog { padding: 22px; width: calc(100% - 28px); }
}
@media (max-width: 390px) {
  #app .content { padding-inline: 14px; }
  #app .topbar { padding-inline: 14px; }
  #app #topName { display: none; }
  #app .card { padding: 18px; }
  #app .hero-card { padding: 24px 21px; }
  #app .hero-card h2 { font-size: 24px; }
  #app .stat { padding: 16px 13px; }
  #app .stat label { font-size: 11px; }
  #app .stat::after { right: 14px; top: 20px; }
  #app .sectionhead h3 { font-size: 15px; }
  #app .sectionhead .link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #app *, #app *::before, #app *::after { transition: none !important; animation: none !important; }
}

/* Tutorial content uses a single readable chapter sequence. */
#app .tutorial-chapters{display:block}#app .tutorial-player{padding:0}#app .tutorial-player>.link{display:inline-flex;margin:0 23px 22px}#app .tutorial-player>p{padding:16px 23px 5px;margin:0!important}

#app .sidebar .dashboard-tip{display:block;padding:16px}#app .sidebar .dashboard-tip p{margin:7px 0 12px}#app .workspace-product{margin-bottom:17px}#app .workspace-brand{font-size:10px;letter-spacing:1.2px;margin-top:16px}#app .sidebar{font-family:inherit}

#app .product-card>.btn{margin-top:22px}
