Files
EnuivTools/web/src/styles.css
T

1839 lines
27 KiB
CSS

:root {
color: var(--ink);
background: var(--bg);
font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
font-size: 14px;
--bg: #0d1117;
--panel: #161a22;
--elevated: #1b212b;
--ink: #e6edf3;
--muted: #9aa4ae;
--line: #262c36;
--accent: #79c0ff;
--accent-soft: rgba(121, 192, 255, 0.16);
--sidebar: #0d1117;
--danger: #f85149;
--ok: #3fb950;
--warn: #d29922;
--paper: #ffffff;
--overlay: rgba(13, 17, 23, 0.72);
}
:root[data-scheme="day"] {
--bg: #f6f8fa;
--panel: #ffffff;
--elevated: #f6f8fa;
--ink: #0d1117;
--muted: #57606a;
--line: #d0d7de;
--accent: #0969da;
--accent-soft: rgba(9, 105, 218, 0.12);
--sidebar: #ffffff;
--danger: #cf222e;
--ok: #1a7f37;
--warn: #9a6700;
--paper: #ffffff;
--overlay: rgba(13, 17, 23, 0.72);
}
::selection {
background: var(--accent-soft);
color: var(--ink);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
* {
scrollbar-color: var(--line) transparent;
}
html,
body,
#app,
.app-root {
margin: 0;
height: 100%;
min-height: 0;
}
button,
input,
select {
font-family: inherit;
}
.gate {
position: relative;
box-sizing: border-box;
height: 100%;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 32px 16px;
background: var(--bg);
}
.theme-switch {
position: absolute;
top: 16px;
right: 16px;
}
.gate-card {
width: min(440px, 100%);
flex: none;
margin-top: auto;
margin-bottom: auto;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
padding: 28px 28px 22px;
}
.brand {
display: flex;
gap: 14px;
align-items: center;
justify-content: center;
margin-bottom: 22px;
}
.brand-mark {
width: 28px;
height: 28px;
border-radius: 4px;
border: 1px solid var(--accent);
color: var(--accent);
background: transparent;
display: grid;
place-items: center;
flex: none;
font-size: 15px;
font-weight: 650;
line-height: 1;
}
.gate .brand-mark {
width: 36px;
height: 36px;
font-size: 18px;
}
.brand h1 {
margin: 0;
font-size: 20px;
line-height: 1.3;
letter-spacing: -0.03em;
}
.form-row {
display: grid;
grid-template-columns: 84px minmax(0, 1fr);
gap: 8px 12px;
align-items: center;
margin-bottom: 12px;
}
.form-row label {
display: flex;
align-items: center;
gap: 4px;
color: var(--ink);
}
.gate-tabs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 16px;
}
.gate-tabs button {
height: 34px;
border: 1px solid var(--line);
background: var(--elevated);
color: var(--muted);
border-radius: 4px;
cursor: pointer;
}
.gate-tabs button.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-soft);
}
.gate-tabs button:disabled {
cursor: wait;
opacity: 0.7;
}
.qr-block {
text-align: center;
}
.qr-block p {
margin: 0 0 12px;
color: var(--muted);
}
.qr-frame {
position: relative;
display: inline-grid;
place-items: center;
width: 210px;
height: 210px;
padding: 0;
border: 1px solid var(--line);
background: var(--paper);
}
.qr-frame img {
display: block;
width: 210px;
height: 210px;
}
.qr-mask {
position: absolute;
inset: 0;
display: grid;
place-items: center;
width: 100%;
border: 0;
background: var(--overlay);
color: var(--paper);
font: inherit;
font-size: 14px;
cursor: pointer;
}
.qr-ttl {
margin: 8px 0 0;
color: var(--muted);
font-size: 12px;
}
.qr-refresh {
justify-content: center;
}
.gate-card.with-jigsaw {
width: min(440px, 100%);
max-width: 100%;
}
.jigsaw-block {
margin-top: 4px;
}
.jigsaw-block p {
margin: 0 0 8px;
text-align: center;
}
.jigsaw-stage {
width: 100%;
}
.jigsaw-frame {
position: relative;
margin: 0 auto;
overflow: hidden;
}
.jigsaw {
position: absolute;
top: 0;
left: 0;
transform-origin: top left;
user-select: none;
touch-action: none;
}
.jigsaw-board,
.jigsaw .piece {
display: block;
max-width: none;
border: 0;
}
.jigsaw .piece {
position: absolute;
pointer-events: none;
}
.jigsaw-track {
position: absolute;
top: 0;
left: 0;
height: 36px;
transform-origin: top left;
border: 1px solid var(--line);
background: var(--elevated);
touch-action: none;
}
.jigsaw-handle {
position: absolute;
top: 0;
width: 40px;
height: 36px;
display: grid;
place-items: center;
padding: 0;
border: 1px solid var(--accent);
background: var(--panel);
color: var(--accent);
cursor: grab;
}
.jigsaw-handle:disabled {
cursor: wait;
}
.gate-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 8px;
}
.shell {
height: 100%;
background: var(--bg);
color: var(--ink);
}
.shell .n-layout,
.shell .n-layout-scroll-container,
.content {
background: var(--bg);
}
.shell .n-layout-sider {
background: var(--sidebar);
border-right: 1px solid var(--line);
}
.shell .n-layout-sider > .n-scrollbar,
.shell .n-layout-sider .n-scrollbar-container,
.shell .n-layout-sider .n-scrollbar-content {
height: 100%;
}
.sider-body {
flex: 1;
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
.sider-brand {
height: 56px;
display: flex;
align-items: center;
gap: 10px;
padding: 0 16px;
border-bottom: 1px solid var(--line);
flex: none;
}
.sider-brand.compact {
justify-content: center;
padding: 0;
}
.sider-brand strong {
font-size: 15px;
font-weight: 650;
letter-spacing: -0.02em;
}
.sider-body .n-menu {
flex: 1;
min-height: 0;
padding-top: 8px;
}
.shell .n-layout-sider .n-menu .n-menu-item-content.n-menu-item-content--selected::before {
background-color: transparent;
border-left: 2px solid var(--accent);
border-radius: 0;
}
.sider-user {
margin-top: auto;
padding: 12px;
border-top: 1px solid var(--line);
display: flex;
align-items: center;
gap: 8px;
}
.sider-user.compact {
flex-direction: column;
padding: 8px 0 12px;
}
.sider-user .who {
min-width: 0;
flex: 1;
}
.sider-user strong,
.sider-user span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sider-user span {
color: var(--muted);
font-size: 12px;
}
.sider-user strong {
font-variant-numeric: tabular-nums;
}
.logout-btn.n-button {
color: var(--danger);
--n-text-color: var(--danger);
--n-text-color-hover: var(--danger);
--n-text-color-pressed: var(--danger);
--n-text-color-focus: var(--danger);
}
.content {
min-width: 0;
min-height: 0;
height: 100%;
display: flex;
flex-direction: column;
}
.page {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
padding: 28px 32px 20px;
box-sizing: border-box;
}
.page-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
position: sticky;
top: 0;
z-index: 2;
background: var(--bg);
}
.page-head h2 {
margin: 0 0 6px;
font-size: 22px;
font-weight: 650;
letter-spacing: -0.03em;
}
.page-head p {
margin: 0;
color: var(--muted);
}
.content > .n-layout-scroll-container,
.content > .n-scrollbar,
.content > .n-scrollbar > .n-scrollbar-container {
height: 100%;
overflow: hidden;
}
.home-page,
.list-page {
overflow: hidden;
}
.home {
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
padding-bottom: 8px;
}
.panel-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
padding: 16px;
}
.panel-card > h3 {
margin: 0 0 12px;
font-size: 13px;
font-weight: 650;
color: var(--muted);
}
.compact-nform {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 560px;
}
.compact-nform.n-form {
gap: 4px;
}
.compact-nform .n-form-item {
margin: 0;
grid-template-columns: auto minmax(0, 1fr);
}
.compact-nform .n-form-item .n-form-item-label {
white-space: nowrap;
padding-right: 12px;
}
.compact-nform .n-form-item-blank {
min-width: 0;
min-height: 32px;
max-width: 100%;
}
.compact-nform .n-form-item-feedback-wrapper {
display: none;
}
.settings-stack {
flex: 1;
min-height: 0;
overflow: auto;
}
.settings-tree {
width: min(720px, 100%);
}
.settings-tree .n-collapse-item {
margin-top: 8px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--panel);
overflow: hidden;
}
.settings-tree .n-collapse-item:first-child {
margin-top: 0;
}
.settings-tree .n-collapse-item__header {
padding: 10px 14px !important;
font-size: 13px;
font-weight: 650;
}
.settings-tree .n-collapse-item__content-inner {
padding: 0 14px 12px 36px !important;
}
.settings-tree .n-collapse-item__header-main {
color: var(--ink);
}
.settings-stack .compact-nform {
max-width: none;
width: 100%;
}
.settings-stack .form-hint {
margin: 0 0 4px 188px;
}
.list-page > .board {
flex: 1;
min-height: 0;
}
.home-summary {
flex: none;
display: flex;
flex-direction: column;
gap: 16px;
}
.home-summary .facts {
margin: 0;
padding-top: 16px;
border-top: 1px solid var(--line);
}
.home-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.home-top-main {
min-width: 0;
flex: 1;
}
.home-refresh.n-button {
flex: none;
color: var(--muted);
}
.field-title {
display: inline-flex;
flex: none;
align-items: center;
gap: 4px;
color: var(--muted);
font-size: 13px;
}
.hint-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
cursor: help;
}
.hint-icon .n-icon {
font-size: 15px;
}
.target-control {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
max-width: 100%;
}
.target-control .n-input-number {
width: 120px;
max-width: 100%;
}
.start-control {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
min-width: 0;
width: 100%;
max-width: 100%;
}
.start-control .day-select,
.start-control .start-time {
flex: 1 1 7rem;
width: auto;
min-width: 0;
max-width: 100%;
}
.start-control .n-switch {
flex: none;
}
.start-control .start-time .n-input {
width: 100%;
}
.worker-select {
width: 132px;
max-width: 100%;
}
.heartbeat-control {
flex-wrap: wrap;
}
.pace-fields {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px 8px;
min-width: 0;
}
.pace-field {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--muted);
}
.pace-field .n-input-number {
width: 52px;
}
.study-config-hint {
margin: 6px 0 0 132px;
max-width: 22rem;
font-size: 12px;
line-height: 1.5;
color: var(--muted);
}
.study-start-wrap {
display: inline-flex;
}
.study-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 16px;
}
.day-warn {
color: var(--warn);
font-size: 18px;
}
.target-unit {
flex: none;
color: var(--muted);
font-size: 13px;
white-space: nowrap;
}
.study-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 16px;
min-height: 28px;
}
.study-head h3 {
margin: 0;
font-size: 13px;
font-weight: 650;
color: var(--muted);
}
.study-state {
flex: 1 1 12rem;
min-width: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 8px;
}
.study-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--muted);
flex: none;
}
.study-indicator.active {
background: var(--ok);
box-shadow: 0 0 6px var(--ok);
}
.study-indicator.down {
background: var(--danger);
box-shadow: 0 0 6px rgba(248, 81, 73, 0.5);
}
.study-text {
font-size: 13px;
}
.study-text.muted {
color: var(--muted);
}
.study-card,
.study-card.is-busy {
flex: 0 0 auto;
overflow: visible;
display: flex;
flex-direction: column;
gap: 12px;
}
.study-card-body {
display: grid;
grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
gap: 16px 32px;
align-items: start;
padding-top: 16px;
border-top: 1px solid var(--line);
}
.study-card.is-busy .study-card-body {
align-items: start;
}
.study-config {
min-width: 0;
max-width: 30rem;
}
.study-config .compact-nform,
.study-config .compact-nform.n-form {
max-width: none;
gap: 20px;
}
.study-live {
min-width: 0;
display: flex;
flex-direction: column;
gap: 20px;
padding-left: 24px;
border-left: 1px solid var(--line);
}
.study-card.is-busy .study-live {
min-height: 0;
}
.study-progress {
display: flex;
flex-direction: column;
gap: 8px;
}
.study-progress-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
font-size: 13px;
font-variant-numeric: tabular-nums;
}
.study-progress-meta span:first-child {
color: var(--muted);
}
.study-live-hint {
margin: 0;
max-width: 36rem;
font-size: 13px;
line-height: 1.5;
color: var(--muted);
}
.study-courses {
--course-cols: minmax(7rem, 1.4fr) minmax(4rem, 1fr) 56px 88px 56px 8px;
display: flex;
flex-direction: column;
gap: 10px;
}
.study-courses.no-countdown {
--course-cols: minmax(7rem, 1.4fr) minmax(4rem, 1fr) 56px 88px 8px;
}
.study-course-head,
.study-worker {
display: grid;
grid-template-columns: var(--course-cols);
align-items: center;
column-gap: 12px;
min-width: 0;
}
.study-course-head {
padding-bottom: 8px;
border-bottom: 1px solid var(--line);
font-size: 12px;
color: var(--muted);
white-space: nowrap;
}
.study-course-head .num {
text-align: right;
}
.study-workers {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.study-worker-title {
min-width: 0;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.study-worker-bar {
min-width: 0;
}
.study-worker-bar .n-progress {
width: 100%;
}
.study-worker-pct,
.study-worker-count,
.study-heartbeat {
text-align: right;
font-variant-numeric: tabular-nums;
font-size: 12px;
white-space: nowrap;
}
.study-worker-count,
.study-heartbeat {
color: var(--muted);
}
.study-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.study-dot.up {
background: var(--ok);
box-shadow: 0 0 6px var(--ok);
}
.study-dot.down {
background: var(--danger);
box-shadow: 0 0 6px var(--danger);
}
.history-facts {
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0 0 16px;
}
.probe-loading {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--muted);
}
.profile {
display: flex;
align-items: center;
gap: 12px;
}
.profile strong,
.profile span {
display: block;
}
.profile span {
margin-top: 4px;
color: var(--muted);
}
.avatar,
.avatar-fallback {
width: 48px;
height: 48px;
border-radius: 4px;
}
.avatar {
object-fit: cover;
border: 1px solid var(--line);
}
.avatar-fallback {
font-size: 20px;
}
.facts {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px 16px;
margin: 0;
}
.facts div {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
min-width: 0;
}
.facts dt {
color: var(--muted);
font-size: 12px;
}
.facts dd {
margin: 0;
font-size: 18px;
font-weight: 650;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
}
.board {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
}
.board-tools {
display: flex;
align-items: center;
gap: 8px;
}
.rail {
flex: 1;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
padding: 4px 16px 12px;
scrollbar-width: thin;
scrollbar-color: var(--line) transparent;
}
.rail:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.rail ol {
list-style: none;
margin: 0;
padding: 0;
}
.rail-empty {
margin: 16px 0 0;
color: var(--muted);
}
.event {
display: grid;
grid-template-columns: 12px minmax(0, 1fr);
column-gap: 12px;
padding-top: 12px;
}
.mark {
position: relative;
}
.mark::before {
content: "";
position: absolute;
left: 3px;
top: 8px;
bottom: -20px;
width: 1px;
background: var(--muted);
opacity: 0.45;
}
.event:last-child .mark::before {
display: none;
}
.mark::after {
content: "";
position: absolute;
left: 0;
top: 5px;
width: 7px;
height: 7px;
box-sizing: border-box;
border: 1px solid var(--accent);
border-radius: 50%;
background: var(--panel);
}
.event-hit {
min-width: 0;
margin: 0;
padding: 0 0 4px;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.event-hit:hover strong {
color: var(--accent);
}
.event time {
display: block;
color: var(--muted);
font-size: 12px;
line-height: 1.4;
font-variant-numeric: tabular-nums;
}
.event .meta,
.event .meta span {
color: var(--muted);
font-size: 12px;
line-height: 1.4;
}
.event .meta {
display: flex;
gap: 8px;
margin: 2px 0 0;
}
.event .meta span.ok,
.detail-table td.ok {
color: var(--accent);
}
.event .meta span.late,
.detail-table td.late {
color: var(--danger);
}
.event strong {
display: block;
margin-top: 2px;
font-size: 14px;
font-weight: 650;
line-height: 1.45;
overflow-wrap: anywhere;
}
.detail-notice {
margin: 0 0 12px;
color: var(--danger);
}
.detail-facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px 16px;
margin: 0;
}
.detail-facts div {
min-width: 0;
}
.detail-facts dt {
color: var(--muted);
font-size: 12px;
}
.detail-facts dd {
margin: 2px 0 0;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.detail h4 {
margin: 16px 0 8px;
font-size: 14px;
}
.detail-table {
width: 100%;
border-collapse: collapse;
font-variant-numeric: tabular-nums;
}
.detail-table th,
.detail-table td {
padding: 8px 0;
border-bottom: 1px solid var(--line);
text-align: left;
}
.detail-table th {
color: var(--muted);
font-size: 12px;
font-weight: 400;
}
.phase ul {
list-style: none;
margin: 0;
padding: 0;
}
.phase h4 {
display: flex;
justify-content: space-between;
gap: 12px;
}
.phase h4 span,
.phase li span {
color: var(--muted);
font-size: 12px;
font-weight: 400;
}
.phase li {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--line);
}
.phase li strong {
min-width: 0;
font-weight: 650;
overflow-wrap: anywhere;
}
.home-status {
margin: 0 0 12px;
color: var(--muted);
}
.spin {
width: 14px;
height: 14px;
flex: none;
box-sizing: border-box;
border: 1.5px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: home-spin 0.8s linear infinite;
}
.profile .spin {
margin-left: auto;
}
.detail-loading {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 16px;
}
.detail-loading .spin {
width: 18px;
height: 18px;
}
.bone {
display: block;
background: var(--line);
border-radius: 4px;
}
.bone-copy {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.bone-avatar {
width: 48px;
height: 48px;
flex: none;
}
.bone-name {
width: 96px;
height: 14px;
}
.bone-meta {
width: 168px;
height: 12px;
}
.bone-value {
width: 52px;
height: 18px;
}
.bone-list {
list-style: none;
margin: 0;
padding: 0;
}
.bone-event {
display: grid;
gap: 8px;
padding: 14px 0 14px 24px;
}
.bone-time {
width: 140px;
height: 12px;
}
.bone-title {
width: min(240px, 86%);
height: 14px;
}
.section-error {
margin: 12px 0 0;
}
.summary-error {
margin: 0;
}
@keyframes home-spin {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.spin {
animation: none;
}
}
@media (max-width: 1100px), (max-height: 760px) {
.study-card,
.study-card.is-busy {
flex: none;
overflow: visible;
}
}
@media (max-width: 1100px) {
.study-card-body,
.study-card.is-busy .study-card-body {
grid-template-columns: minmax(0, 1fr);
gap: 16px;
}
.study-live {
padding-left: 0;
border-left: 0;
padding-top: 16px;
border-top: 1px solid var(--line);
}
}
@media (max-width: 560px) {
.study-config .compact-nform .n-form-item {
grid-template-areas:
"label"
"blank"
"feedback";
grid-template-columns: minmax(0, 1fr);
}
.study-config .compact-nform .n-form-item .n-form-item-label {
min-height: 0;
padding: 0 0 4px;
}
.study-config .target-control {
flex-wrap: nowrap;
}
.study-config .heartbeat-control {
flex-wrap: wrap;
}
.study-config .target-control .n-input-number,
.study-config .worker-select {
flex: none;
width: 132px;
}
.study-config-hint {
margin-left: 0;
}
.study-courses {
--course-cols: minmax(0, 1fr) 52px 76px 52px 8px;
}
.study-courses.no-countdown {
--course-cols: minmax(0, 1fr) 52px 76px 8px;
}
.study-course-head,
.study-worker {
column-gap: 8px;
}
.study-worker {
row-gap: 2px;
}
.study-worker-title {
grid-column: 1 / -1;
}
.study-worker-bar {
visibility: hidden;
}
.study-course-head span:nth-child(2) {
display: none;
}
}
@media (max-width: 800px) {
.page {
padding: 16px 12px;
}
.facts {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.history-facts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-facts {
grid-template-columns: minmax(0, 1fr);
}
}
.admin-page {
overflow: hidden;
}
.admin-page .page-head {
flex: none;
align-items: center;
justify-content: flex-end;
}
.admin-page .page-head:has(> :nth-child(2)) {
justify-content: space-between;
}
.admin-page .page-head p {
margin: 0;
color: var(--muted);
font-size: 12px;
}
.course-search {
display: flex;
gap: 8px;
align-items: center;
width: min(560px, 100%);
}
.course-kinds {
flex: none;
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0 0 12px;
}
.kind-chip {
border: 1px solid var(--line);
background: transparent;
color: var(--ink);
border-radius: 4px;
padding: 4px 10px;
font: inherit;
cursor: pointer;
}
.kind-chip span {
margin-left: 6px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.kind-chip.active {
border-color: var(--accent);
color: var(--accent);
}
.course-url {
max-width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.course-url a {
color: var(--accent);
}
.course-pager {
flex: none;
justify-content: flex-end;
margin-top: 12px;
}
.admin-page > .settings-form {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
}
.admin-alert {
flex: none;
margin-bottom: 12px;
}
.admin-scroll {
flex: 1;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.admin-status {
margin: 0;
color: var(--muted);
}
.form-hint {
margin: 0;
padding: 2px 0 0 0;
font-size: 12px;
color: var(--muted);
}
.history-table {
flex: 1;
min-height: 0;
overflow: auto;
}
.history-title {
overflow-wrap: anywhere;
}
.n-data-table {
--n-merged-th-color: transparent;
--n-merged-td-color: transparent;
}
.page-head-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.admin-table { width: 100%;
min-width: 820px;
border-collapse: collapse;
}
.admin-table th,
.admin-table td {
padding: 10px 16px 10px 0;
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: middle;
}
.admin-table th {
position: sticky;
top: 0;
z-index: 1;
background: var(--bg);
color: var(--muted);
font-size: 12px;
font-weight: 400;
}
.admin-table .pick {
width: 36px;
text-align: center;
}
.admin-table .employee,
.admin-table .when {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.admin-table .ok {
color: var(--accent);
}
.admin-table .late {
color: var(--danger);
}
.admin-table .quiet {
color: var(--muted);
}
.credential-note {
margin: 0 0 12px;
}
.secret-field {
padding: 8px 0;
border-bottom: 1px solid var(--line);
}
.secret-field:last-child {
border-bottom: 0;
}
.secret-label {
margin-bottom: 4px;
color: var(--muted);
font-size: 12px;
}
.secret-value {
overflow-wrap: anywhere;
word-break: break-all;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.leave-choices {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.leave-note {
margin: 16px 0 0;
color: var(--ink);
line-height: 1.6;
}
.notice-page {
min-height: 100%;
display: grid;
place-items: center;
padding: 32px 16px;
}
.notice-card {
width: min(440px, 100%);
padding: 28px 24px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--panel);
}
.notice-card h1 {
margin: 0 0 16px;
font-size: 22px;
font-weight: 650;
}
.notice-card p {
margin: 0 0 12px;
line-height: 1.6;
}
.notice-url {
margin: 0 0 20px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--elevated);
color: var(--accent);
word-break: break-all;
user-select: all;
}
.notice-actions {
display: flex;
gap: 8px;
}
.notice-done {
margin: 12px 0 0;
color: var(--ok);
}
.notice-missed {
margin: 12px 0 0;
color: var(--warn);
}
.app-root {
position: relative;
}
.session-note {
margin: 0 0 16px;
color: var(--ink);
}
.session-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--ink);
}
.session-banner p {
margin: 0;
}
.session-banner-float {
position: absolute;
z-index: 30;
top: 12px;
left: 50%;
transform: translateX(-50%);
width: min(420px, calc(100% - 24px));
padding: 8px 12px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
}
body .n-input .n-input__input-el,
body .n-input .n-input__textarea-el,
body .n-input-number .n-input__input-el {
text-align: center;
}
body .n-input .n-input__placeholder {
justify-content: center;
text-align: center;
}
body .n-base-selection-input,
body .n-base-selection-input__content,
body .n-base-selection-overlay,
body .n-base-selection-placeholder,
body .n-base-selection-input-tag__input {
text-align: center;
}
body .n-base-selection-label,
body .n-base-selection-placeholder,
body .n-base-selection-overlay {
justify-content: center;
}
body .n-base-selection-input__content,
body .n-base-selection-overlay {
display: block;
width: 100%;
}
body .n-base-select-menu .n-base-select-option {
justify-content: center;
}
body .n-base-select-menu .n-base-select-option__content {
flex: 1;
text-align: center;
}
@media (max-width: 1100px) {
.settings-tree {
width: 100%;
}
}
@media (max-width: 480px) {
.gate {
padding: 16px 12px;
}
.gate-card {
padding: 20px 16px 16px;
}
.form-row {
grid-template-columns: minmax(0, 1fr);
}
.facts,
.history-facts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-head,
.course-search,
.target-control,
.start-control {
flex-wrap: wrap;
}
.worker-select,
.target-control .n-input-number,
.day-select {
width: 100%;
max-width: 100%;
}
.compact-nform .n-form-item {
flex-direction: column;
align-items: stretch;
}
.compact-nform .n-form-item-label {
width: 100%;
max-width: 100%;
height: auto;
}
.schedule-choice {
flex-wrap: wrap;
}
}