:root {
    --p: #ffd500;
    --p2: #fff3b0;
    --ink: #111;
    --card: #fff;
    --muted: #4a4a4a;
    --radius: 16px;
}
body {
    background: var(--p);
    color: var(--ink);
    font-family: -apple-system,"Hiragino Sans",sans-serif;
    margin: 0;
    overflow-wrap: anywhere;
}
header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--p);
    padding: 14px 16px;
    max-width: 1200px;
}
header h1 {
    font-size: 18px;
    flex: 1;
    min-width: 120px;
}
main {
    max-width: 1200px;
    padding: 4px 16px 100px;
}
section,.card {
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
    padding: 14px 16px;
    margin: 12px 0;
    min-width: 0;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 15px;
}
button {
    background: var(--ink);
    color: var(--p);
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    max-width: 100%;
}
button:disabled {
    opacity: .5;
    cursor: default;
}
button:focus-visible,input:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}
input,select,textarea {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    background: white;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 10px;
    font-size: 16px;
}
input[type=checkbox] {
    width: auto;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
}
.hero {
    background: var(--ink);
    color: white;
    box-shadow: 3px 3px 0 white;
}
.hero h3 {
    color: var(--p);
}
.tag {
    border-radius: 999px;
    padding: 3px 8px;
    background: #e3ecff;
    font-size: 12px;
}
.tag.important {
    background: #e5484d;
    color: white;
}
.tag.task {
    background: #fff1d6;
    color: #8a5a00;
}
.done {
    opacity: .6;
}
.scroll {
    overflow: auto;
    max-width: 100%;
}
table {
    border-collapse: collapse;
}
th,td {
    padding: 8px;
    text-align: left;
}
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.calendar {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 3px;
    text-align: center;
}
.calendar .day {
    background: white;
    color: var(--ink);
    min-height: 58px;
    border-radius: 8px;
    padding: 5px 1px;
    min-width: 0;
}
.day small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
    color: #177a4a;
}
.target-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.target-chips label {
    border: 1px solid;
    border-radius: 12px;
    padding: 6px;
}
fieldset {
    min-width: 0;
    border: 1px solid;
    border-radius: 12px;
}
#appView nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--ink);
    display: flex;
    gap: 0;
    padding: 8px 3px max(12px,env(safe-area-inset-bottom));
    margin: 0;
}
nav button {
    flex: 1;
    padding: 8px 2px;
    font-size: 12px;
}
#content,#phaseAdmin {
    min-width: 0;
}
#loginView,#passwordView {
    max-width: 440px;
    margin: 20px auto;
}
[hidden] {
    display: none!important;
}
html[data-mode=sp] header,html[data-mode=sp] main {
    max-width: 600px;
}
@media(min-width:700px) {
    html[data-mode=pc] #appView {
        padding-left: 170px;
    }
    html[data-mode=pc] #appView nav {
        top: 90px;
        bottom: 0;
        width: 170px;
        right: auto;
        flex-direction: column;
        justify-content: flex-start;
        padding: 12px 8px;
    }
    html[data-mode=pc] nav button {
        flex: 0;
        padding: 14px;
    }
    html[data-mode=pc] #content,html[data-mode=pc] #phaseAdmin {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px;
        align-items: start;
    }
    html[data-mode=pc] #content>h2,html[data-mode=pc] .hero,html[data-mode=pc] .announcements,html[data-mode=pc] #phaseAdmin {
        grid-column: 1/-1;
    }
}
* {
    box-sizing: border-box;
}
body {
    line-height: 1.6;
}
header,main {
    margin: auto;
}
label {
    display: block;
    margin: 10px 0;
}
button {
    margin: 4px 4px 4px 0;
}
textarea {
    min-height: 90px;
}
table {
    width: 100%;
    font-size: 14px;
}
td,th {
    border-bottom: 1px solid #ddd;
}
#message {
    position: sticky;
    top: 0;
    background: var(--p2);
    padding: 10px;
    z-index: 2;
    white-space: pre-wrap;
}
#message:empty {
    display: none;
}
.muted {
    color: var(--muted);
}
nav button {
    background: var(--ink);
    color: #a0a0a0;
    min-width: 0;
    margin: 0;
}
nav button[aria-current=page] {
    background: var(--ink);
    color: var(--p);
}
#appView nav {
    flex-wrap: nowrap;
}
html[data-mode=pc] #appView {
    padding-left: clamp(80px,17vw,170px);
}
html[data-mode=pc] #appView nav {
    top: 100px;
    bottom: 0;
    width: clamp(80px,17vw,170px);
    right: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 4px;
}
html[data-mode=pc] nav button {
    flex: 0;
    padding: 12px 2px;
}
.secondary {
    background: white;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.center {
    text-align: center;
}
.big {
    font-size: 42px;
    margin: 20px 0 6px;
}
#loginView,#passwordView {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
#loginForm button,#passwordForm button,#btnPasskeyLogin {
    width: 100%;
}
.calendar .day {
    margin: 0;
    width: 100%;
}
