:root { --bar: #10213d; --accent: #f07f17; --text: #e8edf5; --muted: #9fb0c8; --panel: #16263f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #212830; color: var(--text); font: 14px "Segoe UI", Arial, sans-serif; overflow: hidden; }
#app { height: 100%; }
.loading { padding: 24px; }
.shell { display: flex; flex-direction: column; height: 100%; }
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; background: var(--bar); border-bottom: 2px solid var(--accent); }
.brand { font-weight: 700; letter-spacing: 0.5px; margin-right: 6px; }
.brand span { color: var(--accent); }
.bar button, .bar label.btn, .bar select { background: #22385c; color: var(--text); border: 1px solid #36507a; border-radius: 4px; padding: 6px 10px; font: inherit; cursor: pointer; }
.bar button:hover, .bar label.btn:hover { background: #2c4675; }
.bar label.btn input { display: none; }
.name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.main { flex: 1; display: flex; min-height: 0; }
.canvas { flex: 1; position: relative; touch-action: none; }
.canvas canvas { width: 100%; height: 100%; display: block; }
.layers { width: 240px; background: var(--panel); overflow-y: auto; padding: 8px; border-left: 1px solid #2a3d5c; }
.layers label { display: flex; gap: 6px; align-items: center; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.status { padding: 4px 10px; background: var(--bar); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 24px; pointer-events: none; }
.busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(16, 33, 61, 0.75); font-size: 16px; }
@media (max-width: 700px) { .layers { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; width: 70vw; } .name { max-width: 30vw; } }
.bar button.on { background: var(--accent); border-color: var(--accent); }
.bar input.find { background: #0d1a30; color: var(--text); border: 1px solid #36507a; border-radius: 4px; padding: 6px 8px; font: inherit; width: 150px; }
.canvas:focus { outline: none; }
.welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at 30% 30%, #1b3566 0%, #10213d 55%, #0b1628 100%); }
.welcome .logo { font-size: 42px; font-weight: 800; letter-spacing: 1px; }
.welcome .logo span { color: var(--accent); }
.welcome .tag { color: var(--muted); margin: 6px 0 22px; font-size: 16px; }
.welcome label.big { background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 6px; font-size: 17px; font-weight: 600; cursor: pointer; }
.welcome label.big input { display: none; }
.welcome ul { list-style: none; padding: 0; margin: 26px 0 0; color: var(--text); line-height: 1.9; }
.welcome .by { position: absolute; bottom: 14px; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.welcome .list { margin-top: 22px; width: min(760px, 92vw); text-align: left; }
.welcome .search { width: 100%; box-sizing: border-box; padding: 9px 12px; font: inherit; border-radius: 6px; border: 1px solid #36507a; background: #0d1a30; color: var(--text); }
.welcome .rows { max-height: 38vh; overflow-y: auto; margin-top: 8px; border: 1px solid #2a3d5c; border-radius: 6px; }
.welcome a.row { display: grid; grid-template-columns: 2fr 1.4fr 1fr 130px; gap: 8px; padding: 7px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid #1c2e4d; }
.welcome a.row:hover { background: #1b3566; }
.welcome .df, .welcome .dd { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome .dm { color: var(--accent); font-size: 12px; }
.bar a.btn.link { background: #22385c; color: var(--text); border: 1px solid #36507a; border-radius: 4px; padding: 6px 10px; text-decoration: none; }
.info { position: absolute; left: 10px; bottom: 34px; z-index: 3; width: 320px; max-height: 45vh; overflow-y: auto; background: rgba(22, 38, 63, 0.96); border: 1px solid #36507a; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.info .infohead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.info .infohead button { background: none; border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.info .inforow { display: grid; grid-template-columns: 110px 1fr; gap: 6px; padding: 2px 0; border-top: 1px solid #22385c; }
.info .inforow span:first-child { color: var(--muted); }
.main { position: relative; }
.review { width: 320px; background: var(--panel); overflow-y: auto; padding: 8px; border-left: 1px solid #2a3d5c; }
.review .infohead label { font-size: 12px; color: var(--muted); }
.review .card { border: 1px solid #2a3d5c; border-left: 3px solid #e5262b; border-radius: 4px; padding: 6px 8px; margin: 6px 0; cursor: pointer; }
.review .card.done { border-left-color: #8a8f98; opacity: 0.75; }
.review .cardhead { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.review .cardhead span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.review .ctext { margin: 4px 0; white-space: pre-wrap; }
.review .reply { font-size: 12px; margin: 3px 0 3px 10px; padding-left: 6px; border-left: 2px solid #36507a; color: #cdd6e4; }
.review .cardbtns { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.review .cardbtns .state { flex: 1; font-size: 11px; color: var(--muted); }
.review .cardbtns button { background: #22385c; color: var(--text); border: 1px solid #36507a; border-radius: 4px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.bar label.btn.warn { border-color: #c98a2b; color: #ffd28a; }
.welcome .dt { grid-column: 1 / -1; color: #9fb3d1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome .activity { width: min(760px, 100%); margin: 8px 0 4px; background: #13223d; border: 1px solid #22385c; border-radius: 6px; text-align: left; }
.welcome .activity .ahead { padding: 6px 12px; font-weight: 600; border-bottom: 1px solid #22385c; }
.welcome .activity a.arow { display: grid; grid-template-columns: 95px 90px 1.2fr 2fr; gap: 8px; padding: 5px 12px; color: var(--text); text-decoration: none; font-size: 13px; border-bottom: 1px solid #1c2e4d; }
.welcome .activity a.arow:hover { background: #1a2e52; }
.welcome .activity .as { color: #9fb3d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome .dn .thumb { width: 64px; height: 44px; object-fit: contain; background: #fff; border-radius: 3px; margin-right: 10px; vertical-align: middle; }
.welcome .dn { display: flex; align-items: center; }
.layers .layersearch { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 5px 8px; background: #0d1a30; color: var(--text); border: 1px solid #36507a; border-radius: 4px; }
.layers .layerbtns { display: flex; gap: 6px; margin-bottom: 6px; }
.layers .layerbtns button { flex: 1; background: #22385c; color: var(--text); border: 1px solid #36507a; border-radius: 4px; padding: 3px; cursor: pointer; }
.welcome .dashboard .ahead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.welcome .dashboard .dfilters input { width: 110px; margin-left: 6px; padding: 3px 6px; background: #0d1a30; color: var(--text); border: 1px solid #36507a; border-radius: 4px; }
.welcome .dashboard .dfilters label { margin-left: 8px; font-weight: normal; font-size: 12px; }
.welcome .dashboard a.arow.done { opacity: .55; }
.welcome .dashboard { max-height: 320px; overflow-y: auto; }
.review .ctext.warn { color: #ffd28a; }
