.hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.nav a { padding: 7px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 900; font-size: 15px; }
.nav a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
main { max-width: 1320px; margin: 0 auto; padding: 22px 20px 60px; }
h1.t { font-size: 30px; font-weight: 900; margin: 0; line-height: 1.15; }
h2.t { font-size: 20px; font-weight: 900; margin: 0; }
.sect { font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0; }

/* library */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.maker { text-align: left; background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 1px 4px rgba(30,36,48,.07); }
.maker:hover { border-color: var(--ink); }
.maker b { font-size: 18px; } .maker span { font-size: 14px; color: var(--muted); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.qc { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(30,36,48,.07); }
.qc .cv { height: 120px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qc .cv img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qc .cv span { font-size: 42px; font-weight: 900; color: var(--line); }
.qc .bd .row:last-child { flex-wrap: nowrap; gap: 6px; } .qc .bd .row:last-child .danger { margin-left: auto; }
.qc .bd { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.qc .tt { font-size: 18px; font-weight: 900; line-height: 1.25; }
.qc .mt { font-size: 14px; color: var(--muted); font-weight: 700; }
.tag { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* editor */
.ebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ebar .title { flex: 1; min-width: 220px; font-size: 22px; font-weight: 900; border: 2px solid transparent; background: transparent; padding: 6px 8px; border-radius: 10px; }
.ebar .title:hover, .ebar .title:focus { border-color: var(--line); background: var(--card); }
.seg { display: flex; background: var(--soft); border-radius: 11px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 7px 13px; border-radius: 8px; font-weight: 900; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.saved { font-size: 14px; font-weight: 800; color: var(--ok); }
.ed { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
@media (max-width: 1050px) { .ed { grid-template-columns: 1fr; } }
.qlist { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 170px); overflow: auto; padding: 2px; }
.qi { display: flex; gap: 8px; align-items: center; background: transparent; border: 2px solid var(--line); border-radius: 12px; padding: 7px 8px; cursor: pointer; text-align: left; width: 100%; }
.qi.on { background: var(--card); border-color: var(--ink); }
.qi.bad { border-color: color-mix(in srgb, var(--c1) 45%, var(--card)); }
.qi .gr { color: #A9A59C; cursor: grab; font-weight: 900; }
.qi .tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qi .tx small { font-size: 12px; color: var(--muted); font-weight: 800; }
.qi .tx span { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi.drag-over { border-style: dashed; border-color: var(--c0); }
.center-col { display: flex; flex-direction: column; gap: 12px; }
.qtext { font-size: 24px !important; font-weight: 900 !important; text-align: center; min-height: 72px; }
.picbox { min-height: 200px; border: 2px dashed var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; background: var(--card); padding: 12px; }
.picbox.over { border-color: var(--c0); background: color-mix(in srgb, var(--c0) 10%, var(--card)); }
.picbox img { max-height: 280px; max-width: 100%; border-radius: 10px; }
.picbox .acts { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.pinedit { position: relative; display: inline-block; cursor: crosshair; }
.pinedit img { display: block; max-height: 340px; max-width: 100%; border-radius: 10px; }
.pinedit .ring { position: absolute; border: 3px solid var(--ok); background: rgba(35,133,90,.15); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.alist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .alist { grid-template-columns: 1fr; } }
.arow { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 6px 8px 6px 6px; }
.arow.right { border-color: var(--ok); }
.arow .sw { width: 38px; height: 38px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
.arow input { border: none !important; padding: 6px !important; font-size: 18px !important; }
.okbtn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #C9C5BA; background: var(--card); cursor: pointer; flex: none; font-weight: 900; color: #fff; }
.okbtn.on { background: var(--ok); border-color: var(--ok); }
.xbtn { border: none; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; width: 28px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 700; }
.side { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 4px rgba(30,36,48,.07); }
.side .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.side .lab a { text-transform: none; letter-spacing: 0; cursor: pointer; font-size: 13px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; }

/* table */
.tbl-wrap { background: var(--card); border-radius: 14px; overflow: auto; box-shadow: 0 1px 4px rgba(30,36,48,.07); }
table.qt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.qt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
table.qt td { padding: 5px 6px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
table.qt tr.sel td { background: color-mix(in srgb, var(--c0) 14%, var(--card)); } table.qt tr.bad td { background: color-mix(in srgb, var(--c1) 12%, var(--card)); }
table.qt input[type=text], table.qt select { padding: 6px 8px; font-size: 14px; border-width: 1px; border-color: transparent; background: transparent; border-radius: 8px; }
table.qt input[type=text]:hover, table.qt select:hover, table.qt input[type=text]:focus { border-color: var(--line); background: var(--card); }
table.qt .thumb { width: 54px; height: 36px; border-radius: 6px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 11px; color: var(--muted); }
table.qt .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
table.qt tr.over td { outline: 2px dashed var(--c0); }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
textarea.code { font: 500 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 60vh; white-space: pre; }

/* add many / get */
.tabs2 { display: flex; gap: 6px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.plist2 { background: var(--card); border-radius: 14px; overflow: hidden; }
.prow { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--soft); font-size: 14px; font-weight: 800; }
.prow.bad { background: color-mix(in srgb, var(--c1) 12%, var(--card)); }
.prow .ty { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 6px; background: var(--soft); flex: none; }
.prow .tx { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-weight: 800; background: var(--card); }
.drop.over { border-color: var(--c0); background: color-mix(in srgb, var(--c0) 10%, var(--card)); }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kw { position: relative; display: flex; }
.kw .kc { flex: 1; padding-bottom: 38px; }
.kw .kqa { position: absolute; right: 10px; bottom: 8px; }
.kc { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 8px; border: 3px solid transparent; cursor: pointer; text-align: left; }
.kc.on { border-color: var(--ink); }
.kc .cvr { width: 96px; height: 64px; border-radius: 9px; background: var(--soft); flex: none; overflow: hidden; }
.kc .cvr img { width: 100%; height: 100%; object-fit: cover; }
.kq { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.kq.off { background: var(--soft); opacity: .7; }
.kq input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c0); }
.bookmarklet { display: inline-block; padding: 6px 12px; border-radius: 9px; background: var(--btn); color: var(--btn-ink); font-weight: 900; text-decoration: none; cursor: grab; }

/* look */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.th { text-align: left; background: var(--card); border: 3px solid transparent; border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.th.on { border-color: var(--ink); }
.th .pv { height: 70px; border-radius: 9px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 7px; border: 1px solid rgba(0,0,0,.08); }
.th .pvq { align-self: center; font-weight: 900; font-size: 13px; padding: 2px 14px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.th .pvc { display: flex; gap: 4px; } .th .pvc i { flex: 1; height: 15px; border-radius: 4px; }
.th b { font-size: 14px; color: var(--ink); }
.themepop { position: fixed; top: 64px; right: 16px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 16px 18px; z-index: 100; }
.themepop .themes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sw4 { display: inline-flex; gap: 2px; } .sw4 i { width: 8px; height: 16px; border-radius: 3px; display: block; }
.preview { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; }

/* reports */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stats div { background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.stats b { font-size: 28px; font-weight: 900; }
.pct { display: inline-block; height: 8px; border-radius: 4px; background: var(--ok); vertical-align: middle; margin-right: 8px; }
.login { max-width: 540px; margin: 10vh auto 0; display: flex; flex-direction: column; gap: 16px; text-align: center; }

.hd .tjk { --h: 36px; flex-wrap: nowrap; }
@media (max-width: 1180px) { .hd .tjk-mail { display: none; } }
@media (max-width: 860px) { .hd .tjk-name { display: none; } }

/* my quizzes: folders & tags */
.lib { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.tree { padding: 10px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.tf { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; cursor: pointer; user-select: none; font-weight: 700; font-size: 15px; }
.tf:hover { background: var(--soft); } .tf.on { background: var(--ink); color: var(--card); }
.tf.drop, .tg.drop { outline: 2px dashed var(--ink); outline-offset: -2px; }
.tf .tw { width: 14px; font-size: 12px; flex: none; text-align: center; }
.tf .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf .ct { font-size: 12px; opacity: .6; }
.tf .dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.tf .fic { font-style: normal; font-size: 11px; opacity: .45; flex: none; }
.tsec { margin: 12px 6px 4px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ttags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 4px; }
.tg { border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tg span { opacity: .55; font-size: 11px; } .tg.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.tg.small { padding: 2px 8px; font-size: 12px; }
.tg button { border: none; background: none; color: inherit; cursor: pointer; font-size: 14px; padding: 0 0 0 2px; opacity: .6; }
.newq > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 10px; } .newq > summary::-webkit-details-marker { display: none; }
.selbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 12px; position: sticky; top: 70px; z-index: 5; }
.selbar select, .selbar input { padding: 6px 10px; font-size: 14px; width: auto; }
.selbar .sep { width: 1px; height: 24px; background: var(--line); }
.qc { position: relative; cursor: grab; } .qc.sel { outline: 3px solid var(--ink); }
.qc .pick { position: absolute; top: 12px; right: 10px; z-index: 2; background: var(--card); border-radius: 8px; padding: 4px; display: flex; }
.qc .pick input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.qc .st { font-size: 13px; color: var(--muted); font-weight: 600; } .qc .st b { color: var(--ink); }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; } .swatch.on { border-color: var(--ink); outline: 2px solid var(--card); outline-offset: -4px; }
.nmf { display: flex; flex-direction: column; gap: 2px; min-width: 200px; } .nmf > span { font-size: 12px; font-weight: 800; color: var(--muted); } .nmf > span i { font-style: normal; font-weight: 600; opacity: .8; }
.etags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (max-width: 820px) { .lib { grid-template-columns: 1fr; } .tree { position: static; max-height: none; } }

/* ---------- Calm designs A–O: menu tiles ---------- */
.th .pv.mini { height: 84px; position: relative; overflow: hidden; justify-content: flex-start; gap: 5px; }
.th .pv.mini .mq { align-self: stretch; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.1); position: relative; }
.th .pv.mini .mrow { display: flex; gap: 5px; flex: 1; min-height: 0; }
.th .pv.mini .mrow .mq { align-self: auto; }
.th .pv.mini .mans { display: grid; gap: 4px; flex: 1; min-height: 0; position: relative; }
.th .pv.mini .mans.g2 { grid-template-columns: 1fr 1fr; } .th .pv.mini .mans.g1 { grid-template-columns: 1fr; } .th .pv.mini .mans.g4 { grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; }
.th .pv.mini .mrow .mans { flex: 1.1; }
.th .pv.mini .mans i { display: flex; align-items: center; gap: 3px; padding: 0 3px; border-radius: 3px; min-height: 8px; width: 100%; }
.th .pv.mini .mans i b { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.th .pv.mini em { position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -24px; top: -26px; opacity: .14; }
.th .thl { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 12px; margin-right: 7px; vertical-align: 1px; }
