.mtd {
  --mtd-ink:#142d3e; --mtd-muted:#506775; --mtd-blue:#006b98; --mtd-blue-dark:#005477;
  --mtd-line:#d8e3e9; --mtd-surface:#f2f7fa; --mtd-white:#fff; --mtd-radius:12px;
  color:var(--mtd-ink); background:#f3f9fc; padding:clamp(38px,6vw,76px) 20px;
  scroll-margin-block-start:100px; line-height:1.45; isolation:isolate;
}
.mtd *, .mtd *::before, .mtd *::after {box-sizing:border-box}
.mtd .mtd-inner {max-width:1110px;margin-inline:auto}
.mtd .mtd-intro {max-width:750px;margin:0 auto 28px;text-align:center;background:transparent;padding:0;border:0;position:static}
.mtd .mtd-intro p {margin:8px auto 0;color:var(--mtd-muted);font-size:clamp(15px,1.65vw,18px);max-width:650px}
.mtd .mtd-intro .mtd-eyebrow {margin:0 0 8px;color:var(--mtd-blue-dark);font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.10em}
.mtd .mtd-intro h2 {color:var(--mtd-ink);font-size:clamp(30px,4.4vw,48px);line-height:1.12;letter-spacing:-.035em;margin:0}
.mtd .mtd-mount {min-height:515px}
.mtd[data-mtd-mode="home"] .mtd-mount {min-height:487px}
.mtd .mtd-controls {display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 auto 14px}
.mtd button,.mtd input,.mtd select,.mtd textarea {font:inherit;letter-spacing:normal}
.mtd :focus-visible {outline:3px solid #087cb4;outline-offset:3px}
.mtd .mtd-button,.mtd .mtd-role,.mtd .mtd-link,.mtd .mtd-nav-button,.mtd .mtd-card-button {
  color:var(--mtd-ink);cursor:pointer;text-decoration:none;font-weight:650;line-height:1.25;box-shadow:none;
}
.mtd .mtd-button,.mtd .mtd-role {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:37px;border:1px solid #cbdbe4;
  border-radius:7px;background:white;padding:7px 11px;font-size:13px;text-align:center;
}
.mtd .mtd-button:hover,.mtd .mtd-role:hover {background:#eaf4f9}
.mtd .mtd-button.mtd-primary,.mtd .mtd-role[aria-pressed="true"] {background:var(--mtd-blue);border-color:var(--mtd-blue);color:#fff}
.mtd .mtd-button.mtd-primary:hover,.mtd .mtd-role[aria-pressed="true"]:hover {background:var(--mtd-blue-dark)}
.mtd .mtd-button.mtd-danger {color:#9d2b26;border-color:#e6bfbb}
.mtd button:disabled {opacity:.65;cursor:default}
.mtd .mtd-role {min-height:43px;padding:8px 15px;border-radius:8px;font-size:14px}
.mtd .mtd-app {
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;
  border:1px solid #cddfe9;border-radius:14px;background:var(--mtd-white);overflow:clip;
  box-shadow:0 7px 23px #173c5310;
}
.mtd .mtd-top {display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 16px;min-height:49px;border-bottom:1px solid var(--mtd-line)}
.mtd .mtd-logo {display:block;object-fit:contain;object-position:left center;width:112px;height:28px}
.mtd .mtd-top-right {display:flex;align-items:center;justify-content:end;gap:8px;min-width:0;font-size:11px}
.mtd .mtd-avatar {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e9f5fa;color:var(--mtd-blue-dark);font-weight:700}
.mtd .mtd-app-body {display:grid;grid-template-columns:156px minmax(0,1fr);min-height:375px}
.mtd[data-mtd-mode="home"] .mtd-app-body {min-height:347px}
.mtd .mtd-nav {padding:9px 7px;border-right:1px solid var(--mtd-line);display:flex;flex-direction:column;gap:3px}
.mtd .mtd-nav-button {display:flex;align-items:center;gap:7px;min-height:36px;border:0;border-radius:6px;background:transparent;padding:7px;text-align:left;font-size:12px}
.mtd .mtd-nav-button[aria-current="page"],.mtd .mtd-nav-button:hover {background:#e5f2f9;color:var(--mtd-blue-dark)}
.mtd .mtd-icon {display:inline-grid;place-items:center;width:16px;height:16px;flex:none;color:inherit}
.mtd .mtd-icon svg {display:block;width:100%;height:100%}
.mtd .mtd-pane {background:var(--mtd-surface);min-width:0;padding:16px 18px 18px}
.mtd .mtd-pane-head {display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin:0 0 14px}
.mtd .mtd-pane-head h3,.mtd .mtd-dialog h3 {color:var(--mtd-ink);font-size:19px;letter-spacing:-.025em;margin:0;line-height:1.25}
.mtd .mtd-pane-head p,.mtd .mtd-muted {color:var(--mtd-muted);margin:4px 0 0;font-size:12px}
.mtd .mtd-actions {display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mtd .mtd-box,.mtd .mtd-card-button,.mtd .mtd-filter,.mtd .mtd-device {
  background:white;border:1px solid var(--mtd-line);border-radius:var(--mtd-radius);
}
.mtd .mtd-box {padding:13px;margin:10px 0 0}
.mtd .mtd-box h4,.mtd .mtd-device h4 {color:var(--mtd-ink);margin:0 0 4px;font-size:14px}
.mtd .mtd-box p {margin:4px 0}
.mtd .mtd-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:8px;margin:0 0 12px}
.mtd .mtd-card-button {text-align:left;padding:12px;min-height:81px;font-size:12px}
.mtd .mtd-card-button:hover {border-color:#83bad0}
.mtd .mtd-card-button strong {display:block;font-size:25px;letter-spacing:-.04em;line-height:1.12;margin:0 0 5px}
.mtd .mtd-card-button span {font-weight:500;color:var(--mtd-muted);display:block}
.mtd .mtd-filter {display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:0 0 10px;padding:9px}
.mtd .mtd-field {display:grid;gap:4px;text-align:left;font-size:12px;font-weight:600;min-width:0}
.mtd .mtd-filter .mtd-field {flex:1 1 125px}
.mtd .mtd-filter .mtd-button {flex:none}
.mtd .mtd-field :is(input,select,textarea) {
  width:100%;min-width:0;max-width:100%;border:1px solid #a8bfcd;border-radius:6px;background:#fff;
  color:var(--mtd-ink);min-height:35px;padding:5px 7px;font-size:13px;font-weight:400;box-shadow:none;margin:0;
}
.mtd .mtd-field textarea {resize:vertical;min-height:58px}
.mtd .mtd-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mtd .mtd-grid .mtd-wide {grid-column:1/-1}
.mtd .mtd-table-wrap {border:1px solid var(--mtd-line);background:#fff;border-radius:var(--mtd-radius);margin:0;overflow:clip}
.mtd .mtd-table {border-collapse:collapse;width:100%;margin:0;background:white;color:var(--mtd-ink);table-layout:auto;font-size:12px}
.mtd .mtd-table th,.mtd .mtd-table td {text-align:left;border:0;border-bottom:1px solid #e0e8ed;padding:8px 9px;vertical-align:middle;overflow-wrap:anywhere}
.mtd .mtd-table thead th {background:#eaf1f6;color:#3a576a;font-weight:650;font-size:11px}
.mtd .mtd-table tbody tr:last-child > * {border-bottom:0}
.mtd .mtd-table tbody th {font-weight:650}
.mtd .mtd-table .mtd-button {font-size:11px;min-height:30px;padding:4px 7px}
.mtd .mtd-week-list {display:none}
.mtd .mtd-week-grid .mtd-table {table-layout:fixed}
.mtd .mtd-week-grid .mtd-table td {padding:0;border-inline-start:1px solid #e0e8ed}
.mtd .mtd-week-grid .mtd-table th:first-child {width:19%}
.mtd .mtd-day-cell {width:100%;min-height:43px;padding:4px 7px;display:grid;gap:2px;text-align:left;border:0;border-radius:0;color:var(--mtd-ink);cursor:pointer;font-size:11px;line-height:1.2}
.mtd .mtd-day-cell span {display:flex;justify-content:space-between;gap:3px}
.mtd .mtd-day-cell:focus-visible {position:relative;outline-offset:-2px}
.mtd .mtd-day-cell:hover {box-shadow:inset 0 0 0 2px #73aac0}
.mtd .mtd-day-good {background:#eef8f1}
.mtd .mtd-day-today {background:#e9f4fa}
.mtd .mtd-day-neutral {background:#f3f6f8}
.mtd .mtd-day-absence {background:#e4eef8}
.mtd .mtd-day-warn {background:repeating-linear-gradient(135deg,#fff1c4 0 6px,#fff8df 6px 11px);box-shadow:inset 3px 0 #af791a}
.mtd .mtd-empty {margin:0;padding:16px;color:var(--mtd-muted);text-align:center}
.mtd .mtd-tag {display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#e7f3fa;color:#00577c;padding:3px 7px;font-size:11px;line-height:1.15;font-weight:650}
.mtd .mtd-tag.mtd-good {background:#d8f4e5;color:#176443}
.mtd .mtd-tag.mtd-warn {background:#fff2c8;color:#654500}
.mtd .mtd-tag.mtd-bad {background:#fbe4e2;color:#922e2a}
.mtd .mtd-tag.mtd-neutral {background:#edf1f5;color:#4a6171}
.mtd .mtd-note {padding:8px 10px;background:#e8f4fa;border-left:3px solid var(--mtd-blue);border-radius:6px;color:#24495e;margin:9px 0 0;font-size:12px}
.mtd .mtd-note.mtd-warn {background:#fff4e3;border-color:#b97018;color:#653a05}
.mtd .mtd-foot {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;padding:5px 12px;border-top:1px solid var(--mtd-line);color:var(--mtd-muted);font-size:11px}
.mtd .mtd-link {padding:0;border:0;background:none;color:var(--mtd-blue-dark);text-decoration:underline;text-underline-offset:2px;font-size:inherit}
.mtd .mtd-live {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mtd .mtd-cta {display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:22px}
.mtd .mtd-cta .mtd-button {min-height:44px;padding:9px 13px;font-size:14px}
.mtd .mtd-dialog {box-sizing:border-box;width:min(540px,calc(100% - 24px));max-height:calc(100% - 24px);padding:0;border:1px solid var(--mtd-line);border-radius:12px;background:white;color:var(--mtd-ink);font-size:13px;margin:auto}
.mtd .mtd-dialog::backdrop {background:#17324372}
.mtd .mtd-dialog-head,.mtd .mtd-dialog-body,.mtd .mtd-dialog-foot {padding:12px 16px}
.mtd .mtd-dialog-head {display:flex;align-items:start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--mtd-line)}
.mtd .mtd-dialog-body {display:grid;gap:11px}
.mtd .mtd-dialog-body p {margin:0}
.mtd .mtd-dialog-foot {display:flex;gap:7px;justify-content:end;flex-wrap:wrap;background:#edf4f8;border-top:1px solid var(--mtd-line)}
.mtd .mtd-error {color:#a12421;font-size:12px;font-weight:650;margin:0}
.mtd .mtd-device {padding:12px;min-width:0}
.mtd .mtd-device[data-layout="mobile"] {max-width:310px;margin-inline:auto;border:5px solid #263c49;border-radius:25px;padding:13px 10px}
.mtd .mtd-device[data-layout="mobile"] .mtd-punch-grid {grid-template-columns:1fr}
.mtd .mtd-punch-grid {display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,1.2fr);gap:10px;align-items:start}
.mtd .mtd-punch-action {display:grid;justify-items:start;gap:7px}
.mtd .mtd-punch-action strong {font-size:23px;line-height:1.1}
.mtd .mtd-punch-history {min-width:0}
.mtd .mtd-punch-history ol {list-style:none;margin:0;padding:0}
.mtd .mtd-punch-history li {display:flex;justify-content:space-between;gap:7px;border-bottom:1px solid var(--mtd-line);padding:6px 0;font-size:12px}
.mtd .mtd-punch-history li:last-child {border-bottom:0}
@media (max-width:760px) {
  .mtd .mtd-app-body {grid-template-columns:minmax(0,1fr)}
  .mtd .mtd-nav {border-right:0;border-bottom:1px solid var(--mtd-line);flex-direction:row;flex-wrap:wrap}
  .mtd .mtd-nav-button {min-height:37px}
  .mtd .mtd-pane {padding:13px;min-height:365px}
}
@media (max-width:650px) {
  .mtd .mtd-week-grid {display:none}
  .mtd .mtd-week-list {display:block}
}
@media (max-width:530px) {
  .mtd {padding-inline:12px}
  .mtd .mtd-intro {margin-bottom:19px}
  .mtd .mtd-mount,.mtd[data-mtd-mode="home"] .mtd-mount {min-height:610px}
  .mtd .mtd-controls {gap:5px}
  .mtd .mtd-role {font-size:12px;padding:7px;min-height:43px}
  .mtd .mtd-top {padding-inline:10px}
  .mtd .mtd-pane {padding:10px}
  .mtd .mtd-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .mtd .mtd-cta .mtd-button {width:100%}
  .mtd .mtd-punch-grid {grid-template-columns:minmax(0,1fr)}
  .mtd .mtd-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .mtd .mtd-table,.mtd .mtd-table tbody,.mtd .mtd-table tr {display:block}
  .mtd .mtd-table tr {padding:6px 9px;border-bottom:1px solid var(--mtd-line)}
  .mtd .mtd-table tr:last-child {border-bottom:0}
  .mtd .mtd-table th,.mtd .mtd-table td {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:6px;padding:3px 0;border:0}
  .mtd .mtd-table :is(th,td)[data-label]::before {content:attr(data-label);color:var(--mtd-muted);font-size:11px;font-weight:500}
  .mtd .mtd-table td > * {justify-self:start}
}
