/* cadmaster interface mockups — shared chrome (2026-08-19) */
* { box-sizing: border-box; }
body { margin: 0; background: #f4f2ee; color: #222;
       font-family: Georgia, 'Times New Roman', serif; line-height: 1.5; }
.page { max-width: 76em; margin: 1.5em auto 3em; padding: 0 1em; }
.page h1 { font-size: 1.5em; border-bottom: 3px solid #333; padding-bottom: .3em; }
.page h2 { font-size: 1.2em; margin-top: 1.6em; border-bottom: 1px solid #bbb; padding-bottom: .2em; }
.page a { color: #0a58a3; }
.meta { color: #666; font-style: italic; }
.nav { font-size: .95em; margin: .4em 0 1em; }
.callout { background: #fff; border: 1px solid #ddd; border-left: 4px solid #888;
           padding: .6em .9em; margin: .8em 0; }
.callout b.n { color: #b45309; }

/* ============ the mock screen ============ */
.screen { background: #14171c; border: 1px solid #000; border-radius: 8px;
          overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.35);
          font-family: system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
          font-size: 13px; color: #cfd8e3; margin: 1em 0;
          display: flex; flex-direction: column; height: 780px; position: relative; }

.appbar { height: 34px; background: #0c0f13; display: flex; align-items: center;
          gap: 12px; padding: 0 12px; border-bottom: 1px solid #232a33; flex: none; }
.appbar .logo { color: #e8e2d6; font-weight: 600; letter-spacing: .04em; }
.appbar .job { color: #8fa3b8; }
.appbar .spacer { flex: 1; }
.chip { background: #1d232b; border: 1px solid #2e3742; border-radius: 12px;
        padding: 2px 10px; color: #aebccb; white-space: nowrap; }
.chip.preset { border-color: #4a5666; }

.tabstrip { height: 44px; background: #12161b; display: flex; align-items: stretch;
            border-bottom: 1px solid #232a33; flex: none; }
.tab { display: flex; align-items: center; gap: 7px; padding: 0 16px;
       border-right: 1px solid #1c222a; color: #7d8b9b; position: relative; }
.tab .dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4553; flex: none; }
.tab.done { color: #b9c6d4; }        .tab.done .dot { background: #34c96b; }
.tab.flag .dot { background: #e8b93c; }
.tab.block .dot { background: #e5533d; }
.tab.active { background: #1b2430; color: #fff; box-shadow: inset 0 -3px 0 #4aa3ff; }
.tabstrip .strip-spacer { flex: 1; }

.mockbody { flex: 1; display: flex; min-height: 0; position: relative; }

.toolcol { width: 52px; background: #10141a; border-right: 1px solid #232a33;
           display: flex; flex-direction: column; align-items: center;
           padding: 8px 0; gap: 6px; flex: none; }
.tool { width: 38px; height: 38px; border-radius: 7px; background: #1a212a;
        border: 1px solid #262f3a; display: flex; align-items: center;
        justify-content: center; font-size: 16px; color: #9fb0c2; }
.tool.on { background: #16324a; border-color: #4aa3ff; color: #cfeaff; }
.tool.wide { width: 44px; font-size: 10px; font-weight: 700; letter-spacing: .02em;
             color: #ffd27f; height: 34px; }
.toolcol .gap { flex: 1; }
.toolcol .label { font-size: 9px; color: #55636f; }

.canvaswrap { flex: 1; position: relative; min-width: 0; background: #0e1116; }
.canvaswrap img.nest { width: 100%; height: 100%; object-fit: contain; display: block; }
.layerchip { position: absolute; top: 10px; right: 12px; background: #151b22ee;
             border: 1px solid #2e3742; border-radius: 6px; padding: 5px 10px;
             color: #aebccb; }
.layerchip b { color: #e8e2d6; font-weight: 600; }
.layerchip .on { color: #7fdcff; }
.layerchip .dim { color: #62707e; }

.statusbar { height: 26px; background: #0c0f13; border-top: 1px solid #232a33;
             display: flex; align-items: center; gap: 18px; padding: 0 12px;
             color: #7d8b9b; font-size: 12px; flex: none; }
.statusbar .ok { color: #34c96b; }
.statusbar .warn { color: #e8b93c; }

/* ============ panels ============ */
.panel { background: #1a2029; border: 1px solid #2c3540; display: flex;
         flex-direction: column; min-height: 0; }
.panel .phead { background: #202836; padding: 6px 10px; font-weight: 600;
                color: #dde6ef; display: flex; align-items: center; gap: 8px;
                border-bottom: 1px solid #2c3540; }
.panel .phead .grip { color: #566374; cursor: grab; }
.panel .phead .spacer { flex: 1; }
.panel .phead .pin { color: #566374; font-size: 11px; }
.panel .pbody { padding: 8px 10px; overflow: hidden; }
.krow { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0;
        border-bottom: 1px dashed #242d38; }
.krow:last-child { border-bottom: 0; }
.krow .k { color: #8b9aab; }
.krow .v { color: #d7e1ec; text-align: right; }
.krow .v.ok::after { content: " ✓"; color: #34c96b; }
.krow .v.bad { color: #ff8d7a; }
.slider { margin: 8px 0 2px; }
.slider .lab { display: flex; justify-content: space-between; color: #8b9aab; margin-bottom: 3px; }
.slider .lab .val { color: #7fdcff; }
.slider .track { height: 4px; background: #2c3540; border-radius: 2px; position: relative; }
.slider .track::after { content: ""; position: absolute; left: 38%; top: -4px;
        width: 12px; height: 12px; border-radius: 50%; background: #4aa3ff; }
.btn { display: inline-block; background: #1f2a38; border: 1px solid #3a4a5e;
       border-radius: 6px; padding: 5px 10px; color: #cfe2f5; margin: 3px 4px 3px 0; }
.btn.primary { background: #174468; border-color: #4aa3ff; }
.btn.ghost { color: #8b9aab; border-style: dashed; }
.flagrow { background: #2a1512; border: 1px solid #703326; border-radius: 6px;
           padding: 5px 8px; color: #ffb3a5; margin-top: 8px; }
.flagrow a { color: #ffd27f; }

/* docked right drawer (A, C) */
.drawer { width: 272px; border-left: 1px solid #232a33; background: #171d25;
          display: flex; flex-direction: column; flex: none; }
.drawer .panel { border: 0; border-bottom: 1px solid #232a33; background: transparent; }
.icostrip { width: 30px; background: #10141a; border-left: 1px solid #232a33;
            display: flex; flex-direction: column; align-items: center; gap: 10px;
            padding-top: 10px; color: #55636f; flex: none; font-size: 13px; }

/* bottom strip (A, C) */
.bottomstrip { height: 96px; background: #12161b; border-top: 1px solid #232a33;
               display: flex; flex-direction: column; flex: none; }
.bottomstrip .phead { background: #161c24; padding: 3px 10px; color: #9fb0c2;
                      font-weight: 600; border-bottom: 1px solid #232a33; }
.log { padding: 5px 12px; color: #7d8b9b; font-size: 12px; overflow: hidden; }
.log .t { color: #55636f; }
.log .who { color: #cfd8e3; }

/* floating panels (B, C) */
.float { position: absolute; box-shadow: 0 10px 28px rgba(0,0,0,.55);
         border-radius: 7px; overflow: hidden; z-index: 5; }
.float .phead { cursor: grab; }
.ptabs { display: flex; border-bottom: 1px solid #2c3540; background: #161c24; }
.ptab { padding: 5px 12px; color: #7d8b9b; border-right: 1px solid #232a33; }
.ptab.on { background: #1a2029; color: #dde6ef; box-shadow: inset 0 2px 0 #4aa3ff; }
.wsmenu { position: absolute; top: 40px; right: 12px; background: #10141a;
          border: 1px solid #2e3742; border-radius: 7px; z-index: 9;
          box-shadow: 0 10px 28px rgba(0,0,0,.55); min-width: 200px; }
.wsmenu .item { padding: 6px 12px; color: #aebccb; border-bottom: 1px solid #1b222b; }
.wsmenu .item.on { color: #fff; background: #16324a; }
.wsmenu .item.sep { color: #55636f; font-size: 11px; background: #0c0f13; }
.snapghost { position: absolute; border: 2px dashed #4aa3ff66; background: #4aa3ff12;
             border-radius: 6px; z-index: 2; display: flex; align-items: flex-start;
             justify-content: center; color: #4aa3ff88; padding-top: 8px; font-size: 12px; }
