Spaces:
Runtime error
Runtime error
File size: 7,967 Bytes
398effe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | :root {
--bg: #0f1216;
--panel: #171c22;
--panel-2: #1e242c;
--line: #2a323c;
--text: #e6ebf1;
--muted: #93a1b1;
--accent: #4da3ff;
--ok: #3ecf8e;
--warn: #f0b429;
--bad: #f2545b;
--doctor: #4da3ff;
--patient: #f5a15c;
--attendant: #3ecf8e;
--other: #9aa5b1;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}
header {
display: flex; align-items: center; gap: 16px;
padding: 10px 18px;
background: var(--panel);
border-bottom: 1px solid var(--line);
position: sticky; top: 0; z-index: 20;
}
header h1 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: .2px; }
header .spacer { flex: 1; margin-left: auto; }
header .who { color: var(--muted); font-size: 13px; }
main { padding: 18px; max-width: 1500px; margin: 0 auto; }
.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
padding: 14px 16px;
margin-bottom: 14px;
}
button {
background: var(--panel-2); color: var(--text);
border: 1px solid var(--line); border-radius: 6px;
padding: 7px 13px; font-size: 13px; cursor: pointer;
font-family: inherit;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 600; }
button.danger { border-color: var(--bad); color: var(--bad); }
input, select {
background: var(--panel-2); color: var(--text);
border: 1px solid var(--line); border-radius: 6px;
padding: 7px 10px; font-size: 13px; font-family: inherit;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
/* ---- waveform ---- */
#stage { position: relative; user-select: none; }
canvas { display: block; width: 100%; border-radius: 6px; background: #0b0e12; cursor: crosshair; }
/* The waveform is the work surface for speaker turns and only a reference for
transcription, so the two pages give it very different amounts of screen. */
#wave { height: 190px; }
#mini { height: 44px; margin-top: 6px; cursor: pointer; }
body.track-asr #wave { height: 104px; }
body.track-asr #mini { height: 30px; }
#hint {
position: absolute; pointer-events: none;
background: #000d; border: 1px solid var(--line); border-radius: 4px;
padding: 3px 7px; font-size: 12px; display: none; white-space: nowrap;
}
/* ---- turn table ---- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; position: sticky; top: 0; background: var(--panel); }
tr.sel td { background: #4da3ff22; }
td.num { text-align: right; font-family: "Cascadia Mono", Consolas, monospace; }
.scroll { max-height: 320px; overflow-y: auto; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
/* ---- transcript column ----
Hidden entirely on diarization-only tasks so the table does not carry an empty column
through 7500 chunks of work that will never use it. */
.textcol { display: none; }
body.with-text .textcol { display: table-cell; width: 46%; }
/* Transcription is the whole job on that page, so the text gets what room is left once the
assembled view has taken its column. The timing cells shrink to make space. */
body.track-asr .textcol { width: 52%; }
body.track-asr .textcol textarea { font-size: 15px; }
body.track-asr td.num, body.track-asr th { font-size: 12px; }
body.track-asr th, body.track-asr td { padding: 5px 5px; }
.textcol textarea {
width: 100%; min-height: 30px; resize: vertical;
background: var(--panel-2); color: var(--text);
border: 1px solid var(--line); border-radius: 5px;
padding: 5px 8px; font-family: inherit; font-size: 14px; line-height: 1.45;
}
.textcol textarea:focus { outline: none; border-color: var(--accent); }
.textcol textarea:placeholder-shown { border-style: dashed; }
tr.sel .textcol textarea { border-color: var(--accent); }
#turnBody select {
background: var(--panel-2); color: var(--text);
border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; font-size: 12.5px;
}
.pill {
display: inline-block; padding: 2px 9px; border-radius: 999px;
font-size: 12px; border: 1px solid var(--line);
}
.pill.ok { color: var(--ok); border-color: #3ecf8e55; }
.pill.warn { color: var(--warn); border-color: #f0b42955; }
.pill.bad { color: var(--bad); border-color: #f2545b55; }
kbd {
background: var(--panel-2); border: 1px solid var(--line);
border-bottom-width: 2px; border-radius: 4px;
padding: 1px 6px; font-size: 11px; font-family: inherit;
}
#toast {
position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
padding: 10px 18px; display: none; z-index: 50;
}
.login { max-width: 340px; margin: 12vh auto; }
.login input { width: 100%; margin-bottom: 10px; }
.error { color: var(--bad); font-size: 13px; min-height: 18px; }
/* ---- sign-in portal ---- */
.portal { max-width: 780px; margin: 9vh auto; padding: 0 18px; text-align: center; }
.portal h1 { font-size: 22px; margin: 0 0 6px; }
.portal > .muted { margin: 0 0 26px; }
.doors { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.door {
display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
padding: 20px 18px; text-align: left; border-radius: 10px;
background: var(--panel); border: 1px solid var(--line);
}
.door:hover { border-color: var(--accent); background: var(--panel-2); }
.door .ico { font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.door .t { font-size: 16px; font-weight: 600; }
.door .s { color: var(--text); font-size: 13px; }
.door .w { color: var(--muted); font-size: 12px; margin-top: 4px; }
.signin { max-width: 380px; margin: 0 auto; text-align: left; }
.signin input { width: 100%; margin-bottom: 10px; }
/* ---- assembled transcript, beside the turn editor ----
Two columns rather than two stacked cards: the assembled view earns its place only if it
is visible while typing. `align-items: start` keeps the right column from stretching to
the height of a 70-row table, and sticky holds it in view as the table scrolls past. */
.split {
display: grid; gap: 14px; align-items: start;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.split > .card { margin-bottom: 0; }
.sticky-col { position: sticky; top: 76px; }
.fulltext {
background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
padding: 12px 14px; overflow-y: auto;
max-height: calc(100vh - 360px); min-height: 220px;
font-size: 14.5px; line-height: 1.75;
}
.fulltext b { color: var(--accent); font-weight: 600; }
/* Below this the two columns are too narrow to type Bengali in comfortably, so stack. */
@media (max-width: 1180px) {
.split { grid-template-columns: 1fr; }
.split > .card { margin-bottom: 14px; }
.sticky-col { position: static; }
.fulltext { max-height: 300px; }
}
/* ---- notices inside a workspace ---- */
.notice {
border: 1px solid var(--line); border-left-width: 3px; border-radius: 6px;
padding: 9px 12px; font-size: 13px; margin-bottom: 10px;
}
.notice.info { border-left-color: var(--accent); }
.notice.warn { border-left-color: var(--warn); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 12px; }
.wrap { overflow-x: auto; }
|